1
0
Fork 0
This repository has been archived on 2024-04-23. You can view files and clone it, but cannot push or open issues or pull requests.
Global-Gam-Jam-2017/res/shaders/main.vert
2017-01-14 17:59:15 +01:00

20 lines
No EOL
400 B
GLSL

#version 150
uniform mat4 projection;
uniform mat4 camera;
uniform mat4 transform;
in vec3 vert;
in vec2 vertTexCoord;
out vec3 fragVert;
out vec2 fragTexCoord;
void main() {
// Pass some variables to the fragment shader
fragTexCoord = vertTexCoord;
fragVert = vert;
// Apply all matrix transformations to vert
gl_Position = projection * camera * transform * vec4(vert, 1);
}