aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/compute_shader/mvp.vs.glsl
blob: 4c4d062d681c656bd800354ea00b22e55f195a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#version 430

layout(location = 0) in vec4 a_position;

uniform mat4 u_modelview;
uniform mat4 u_projection;

void main()
{
	const mat4 mvp = u_projection * u_modelview;
	gl_Position = mvp * a_position;
}