75357b330c
Now using GLM instead of the custom math libraries. Sadly, this did not 100% fix the problem at hand but it does give some closure that the math is not the problem. Also it will be nice to have a general math library to not have to deal with creating every math function every time.
14 lines
356 B
GLSL
14 lines
356 B
GLSL
#version 430
|
|
layout(location = 0) in vec3 vertex_position;
|
|
layout(location = 1) in vec4 vertex_color;
|
|
layout(location = 2) in vec3 vertex_offset;
|
|
|
|
// TODO: Try this with location 0
|
|
layout(location = 3) uniform mat4 vp;
|
|
|
|
out vec4 fragment_color;
|
|
void main()
|
|
{
|
|
fragment_color = vertex_color;
|
|
gl_Position = vp * vec4(vertex_position + vertex_offset, 1.0);
|
|
} |