You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
292 B

#version 330 core
in vec3 vertexPosition_modelspace;
in vec3 vertexColor;
out vec3 fragmentColor;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = projection * view * model * vec4(vertexPosition_modelspace, 1);
fragmentColor = vertexColor;
}