raylib/examples/resources/shaders/shapes_base.vs

18 lines
329 B
Plaintext
Raw Normal View History

2015-09-02 02:06:55 +03:00
#version 110
attribute vec3 vertexPosition;
attribute vec2 vertexTexCoord;
2015-09-02 02:06:55 +03:00
attribute vec4 vertexColor;
2016-01-13 19:13:28 +03:00
uniform mat4 mvpMatrix;
varying vec2 fragTexCoord;
2016-01-13 19:13:28 +03:00
varying vec4 fragTintColor;
void main()
{
fragTexCoord = vertexTexCoord;
2016-01-13 19:13:28 +03:00
fragTintColor = vertexColor;
2015-09-02 02:06:55 +03:00
2016-01-13 19:13:28 +03:00
gl_Position = mvpMatrix*vec4(vertexPosition, 1.0);
}