Skip to content

Any simple example on how to draw shader on the screen? #8

Answered by houmain
offeex asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for asking!
GPUpad is very flexible but makes the simple things still a little bit complicated. I will think about how this can be simplified!

To execute a fragment shader and see the result, one has to create a few items in the session window (like a target to render to, a shader program and a render call).
For now it is easiest, to start with a sample from the Help menu and edit the shader. The simplest one is the sample "Quad". If you open it, and have a look at the session window, there is an item "Program", which you can double click to open it's vertex and fragment shaders. In the fragment shader you can paste your code.

You should add a "#version 120" in the first line (…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by houmain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants