18 lines
No EOL
334 B
GLSL
18 lines
No EOL
334 B
GLSL
#version 150
|
|
|
|
uniform mat4 projection;
|
|
|
|
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 * vec4(vert, 1);
|
|
} |