pointSprite.vert 277 Bytes
Newer Older
1
// PointSprite::vertexShaderText 
2

3
ATTRIBUTE vec3 VertexPosition;
4
#ifdef WITH_COLOR_PER_VERTEX 
5 6
	ATTRIBUTE vec4 VertexColor;
	VARYING_VERT vec4 color;
7 8
#endif

9 10
void main ()
{
11
	gl_Position = vec4(VertexPosition, 1.0);
12
#ifdef WITH_COLOR_PER_VERTEX 
13
	color = VertexColor;
14
#endif
15
}