double-hit-balls/assets/ms_vertex.txt

22 lines
458 B
Plaintext
Raw Permalink Normal View History

2018-01-14 00:17:27 +00:00
attribute vec3 vPosition;
attribute vec4 vColor;
2018-04-11 14:16:37 +00:00
attribute vec3 vLineParams;
attribute vec4 vStartPointEndPoint;
2018-01-14 00:17:27 +00:00
varying vec3 position;
2018-04-11 14:16:37 +00:00
varying vec4 color;
varying vec3 lineParams;
varying vec4 startPointEndPoint;
2018-01-14 00:17:27 +00:00
uniform mat4 ProjectionMatrix;
void main()
{
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
2018-04-11 14:16:37 +00:00
2018-01-14 00:17:27 +00:00
position = vPosition;
2018-04-11 14:16:37 +00:00
color = vColor;
lineParams = vLineParams;
startPointEndPoint = vStartPointEndPoint;
2018-01-14 00:17:27 +00:00
}