OpenGL-utility/examples/model_loading/shaders/vertexShader.vert
2021-01-22 13:37:57 +01:00

14 lines
245 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos;
out vec4 oCol;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
oCol = vec4(0.5, 0.5, 0.5, 1.0);
gl_Position = projection * view * model * vec4(aPos, 1.0);
}