protot/data/shaders/vs_simple.glsl

17 lines
277 B
Plaintext
Raw Normal View History

2018-02-13 12:05:07 +01:00
#version 150 core
#extension GL_ARB_explicit_attrib_location : require
2018-02-13 12:05:07 +01:00
in vec4 inCoord;
in vec3 inNormal;
in vec2 inUV;
in vec4 inColor;
2018-02-16 21:22:34 +01:00
uniform mat4 uModelViewProj;
2018-02-13 12:05:07 +01:00
out vec4 fragmentColor;
2018-02-13 12:05:07 +01:00
void main() {
gl_Position = uModelViewProj * inCoord;
fragmentColor = inColor;
2018-02-13 12:05:07 +01:00
}