Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: how to pass variables through vertex shader, geometry shader and fragment shader?

Threaded View

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2011
    Posts
    23

    how to pass variables through vertex shader, geometry shader and fragment shader?

    Hi there,

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •