<<< Shaders | Index | Vertex Shader Example >>> |
Shaders get data from:
Vertex attributes (vertex shaders only) -- data for each vertex in a four-component vector form copied from your OpenGL program into a buffer
Uniforms (vertex/fragment shaders) -- a single value shared between all attributes
used often to pass transformation matrices to the vertex shader
Texture (used mostly by fragment shaders) -- specify texture data
<<< Shaders | Index | Vertex Shader Example >>> |