raylib/examples/resources/shaders/shapes_base.vs
Constantine Tarasenkov db5493b783 Fix shader versions
2016-01-29 03:47:43 +03:00

18 lines
329 B
GLSL

#version 330
attribute vec3 vertexPosition;
attribute vec2 vertexTexCoord;
attribute vec4 vertexColor;
uniform mat4 mvpMatrix;
varying vec2 fragTexCoord;
varying vec4 fragTintColor;
void main()
{
fragTexCoord = vertexTexCoord;
fragTintColor = vertexColor;
gl_Position = mvpMatrix*vec4(vertexPosition, 1.0);
}