Passing data from vertex shader to fragment shader
Hi guys...
Is there some way to pass data from vertex shader to fragment shader in OpenGL low-level shaders? In the case of GLSL we have varyings for that purpose. Is there a similar technique in low-level shaders also ?
Thanks in advance.. :-)
It depends on the extension. ARB_vertex_program, for example, pass its results to the fragment program through the 'result' struct. ARB_fragment_program receives these results through the 'fragment' struct. These aren't really structs, but you can think of them this way because of the way you access members (e.g. fragment.texcoord[0]).
I suggest you take a look at the specifications of these extensions for a better explanation.
ARB_vertex_program
ARB_fragment_program
HellRaiZer
I suggest you take a look at the specifications of these extensions for a better explanation.
ARB_vertex_program
ARB_fragment_program
HellRaiZer
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement