kubi/shaders/colored.vert

12 lines
214 B
GLSL
Raw Normal View History

#version 150 core
in vec3 position;
uniform mat4 model;
uniform mat4 perspective;
uniform mat4 view;
void main() {
mat4 modelview = view * model;
gl_Position = perspective * modelview * vec4(position, 1.);
}