shaderRadiancePerVertex.geom 426 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// ShaderRadiancePerVertex::geometryShaderText
VARYING_IN vec3 ColorAttrib[];
VARYING_OUT vec3 vxColor;
void main()
{
        gl_Position = POSITION_IN(0);
        vxColor = ColorAttrib[0];
        EmitVertex();
        gl_Position = POSITION_IN(1);
        vxColor = ColorAttrib[1];
        EmitVertex();
        gl_Position = POSITION_IN(2);
        vxColor = ColorAttrib[2];
        EmitVertex();
        EndPrimitive();
}