Spaces:
Sleeping
Sleeping
File size: 268 Bytes
b4c8bc3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#version 330 core
layout(location = 0) in vec3 position;
layout(location = INST_M_LOC) in mat4 inst_m;
uniform mat4 P;
uniform mat4 V;
uniform mat4 M;
void main()
{
mat4 light_matrix = P * V;
gl_Position = light_matrix * M * inst_m * vec4(position, 1.0);
}
|