6a04c835cf
Creating this branch in order to spend more time on the 2D engine stuff since I will probably be doing a 2D thing before I mess around much with 3D and 3D lighting.
12 lines
298 B
GLSL
12 lines
298 B
GLSL
#version 430
|
|
layout(location = 0) in vec3 vertex_position;
|
|
|
|
layout(location = 3) in mat4 model_to_world;
|
|
|
|
layout(location = 0) uniform mat4 world_to_projection;
|
|
|
|
void main()
|
|
{
|
|
vec4 model_position = model_to_world * vec4(vertex_position, 1.0);
|
|
gl_Position = world_to_projection * model_position;
|
|
} |