blob: 6ea352f9baf6c2591149f05b53b0e8aecb644745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#version 330 core
in vec3 position;
uniform mat4 viewProjection;
uniform mat4 model;
void
main()
{
gl_Position = viewProjection * model * vec4(position, 1.0);
gl_Position.z = max(gl_Position.z, -1);
}
|