double-hit-balls/assets/ms_vertex.txt

13 lines
253 B
Plaintext
Executable File

attribute vec3 vPosition;
attribute vec4 vColor;
varying vec4 color;
varying vec3 position;
uniform mat4 ProjectionMatrix;
void main()
{
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
color = vColor;
position = vPosition;
}