protot/data/shaders/vs_simple.glsl

15 lines
296 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
layout(location = 0) in vec3 inCoord;
layout(location = 1) in vec3 inColor;
2018-02-16 21:22:34 +01:00
uniform mat4 uModelViewProj;
2018-02-13 12:05:07 +01:00
out vec3 fragmentColor;
2018-02-13 12:05:07 +01:00
void main() {
gl_Position = uModelViewProj * vec4(inCoord, 1);
fragmentColor = inColor;
2018-02-13 12:05:07 +01:00
}