double-hit-balls/assets/texture-shader.vertex
Vladislav Khorev Dev 9096f79f5a preparing
2017-12-19 16:28:16 +05:00

13 lines
268 B
Plaintext
Executable File

attribute vec3 vPosition;
attribute vec2 vTexCoord;
varying vec2 texCoord;
uniform mat4 ProjectionMatrix;
uniform mat4 ModelViewMatrix;
void main()
{
gl_Position = ProjectionMatrix * ModelViewMatrix * vec4(vPosition.xyz, 1.0);
texCoord = vTexCoord;
}