blob: 5af156024c45ebc3ee5f522742d77a45d5934c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#version 410 core
layout(location = 0) in vec3 inPosition;
uniform Camera {
mat4 view;
mat4 proj;
vec4 viewPos;
} cam;
void main() {
gl_Position = cam.proj * cam.view * vec4(inPosition, 1.0);
}
|