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

23 lines
474 B
GLSL
Raw Permalink Normal View History

2016-09-15 12:41:15 +02:00
#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);
2016-03-06 13:45:34 +01:00
}