1
0
mirror of synced 2024-11-14 19:17:39 +01:00
Switch-Toolbox/Toolbox/Shader/HDRSkyBox/HDRSkyBox.vert
2021-04-09 21:05:47 -04:00

16 lines
302 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 = vec3(-aPos.x, aPos.y, aPos.z);
vec4 clipPos = projection * rotView * vec4(aPos, 1.0);
gl_Position = clipPos.xyww;
}