double-hit-balls/assets/color_vertex.txt

11 lines
205 B
Plaintext
Raw Permalink Normal View History

2017-12-02 10:25:02 +00:00
attribute vec3 vPosition;
attribute vec4 vColor;
varying vec4 color;
uniform mat4 ProjectionMatrix;
void main()
{
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
color = vColor;
}