16 lines
277 B
GLSL
16 lines
277 B
GLSL
#version 330 core
|
|
layout (location = 0) in vec3 aPos;
|
|
|
|
uniform mat4 projection;
|
|
uniform mat4 rotView;
|
|
uniform mat4 mtxCam;
|
|
|
|
out vec3 TexCoords;
|
|
|
|
void main()
|
|
{
|
|
TexCoords = aPos;
|
|
vec4 clipPos = projection * rotView * vec4(aPos, 1.0);
|
|
|
|
gl_Position = clipPos.xyww;
|
|
} |