awips2/cave/com.raytheon.uf.viz.gl.triangulated/localization/glsl/copyValueVertexShader.glsl
2022-05-05 12:34:50 -05:00

12 lines
No EOL
375 B
GLSL

// Vertex shader copies an attribute value to a varying variable so that it can
// be used in the fragment shader
attribute float attrib_value;
varying float vary_value;
void main(void) {
vary_value = attrib_value;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;
gl_TexCoord[0] = gl_MultiTexCoord0;
}