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.

16 lines
279 B

#version 330 core
layout (location = 0) in vec3 vertices;
layout (location = 1) in float distances;
uniform vec4 ourColor;
out float dist;
out vec4 color;
uniform mat4 MVP;
void main()
{
dist = distances;
gl_Position = MVP * vec4(vertices,1.0);
color = ourColor;
}