This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
Java-Game-Engine-Light-Test/res/shaders/light.vert
2016-09-15 12:41:15 +02:00

23 lines
No EOL
474 B
GLSL

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