protot/data/shaders/vs_simple.glsl

15 lines
254 B
GLSL

#version 150 core
#extension GL_ARB_explicit_attrib_location : require
in vec3 inCoord;
in vec3 inColor;
uniform mat4 uModelViewProj;
out vec3 fragmentColor;
void main() {
gl_Position = uModelViewProj * vec4(inCoord, 1);
fragmentColor = inColor;
}