pointSprite.vert 332 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
VARYING_VERT vec3 posClip;

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