double-hit-balls/assets/shaders/particle-shader.vertex
Vladislav Khorev Dev cbb3ffb008 Testing particles
2017-12-24 04:55:01 +05:00

15 lines
279 B
Plaintext
Executable File

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