- attribute vec3 customAttrib;
- attribute vec3 customAttrib2;
- attribute vec3 customAttrib3;
- void main(void)
- {
- gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
- //gl_FrontColor = gl_Color;
- gl_FrontColor = vec4( customAttrib.x, customAttrib.y, customAttrib.z, 0 );
- }