double-hit-balls/assets/texture-shader.vertex

13 lines
268 B
Plaintext
Raw Normal View History

2013-01-19 21:23:44 +00:00
attribute vec3 vPosition;
attribute vec2 vTexCoord;
2017-12-19 10:54:34 +00:00
2013-01-19 21:23:44 +00:00
varying vec2 texCoord;
uniform mat4 ProjectionMatrix;
2017-12-19 10:54:34 +00:00
uniform mat4 ModelViewMatrix;
2013-01-19 21:23:44 +00:00
void main()
{
2017-12-19 10:54:34 +00:00
gl_Position = ProjectionMatrix * ModelViewMatrix * vec4(vPosition.xyz, 1.0);
2013-01-19 21:23:44 +00:00
texCoord = vTexCoord;
}