OpenGL-utility/examples/model_loading/shaders/vertexShader.vert

14 lines
245 B
GLSL
Raw Normal View History

2021-01-22 12:37:57 +00:00
#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);
}