how to pass variables through vertex shader, geometry shader and fragment shader?
I recently introduced geometry shader, but it didn't work out well. I have trouble passing variables through vertex shader to geometry shader and vertex shader to fragment shader.
If I want to pass a variable through pipeline, do I have to pass it from vertex shader to geometry shader and then down to fragment shader? can I pass it from vertex shader directly to fragment shader?
What if I want to create a variable in geometry shader and pass it to fragment shader?
Can anyone explain this to me? Thank you very much!
Last edited by Sobeit; 06-20-2013 at 10:49 PM.
Tags for this Thread