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