2021-02-12 20:12:55 +01:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
// World to view projection matrix to correctly position the vertex on screen
|
|
|
|
uniform mat4 WVP;
|
|
|
|
|
2021-02-12 20:24:42 +01:00
|
|
|
// Position vector of the current vertex in local space
|
2021-02-12 20:12:55 +01:00
|
|
|
in vec3 pos;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
gl_Position = WVP * vec4(pos, 1.0);
|
|
|
|
}
|