awips2/cave/com.raytheon.uf.viz.gl.triangulated/localization/glsl/copyValueVertexShader.glsl

12 lines
375 B
Text
Raw Normal View History

2022-05-05 12:34:50 -05:00
// 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;
}