1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix cubemap view direction

This commit is contained in:
KillzXGaming 2021-04-09 21:05:47 -04:00
parent f98cb66feb
commit b8915393ea

View File

@ -9,7 +9,7 @@ out vec3 TexCoords;
void main()
{
TexCoords = aPos;
TexCoords = vec3(-aPos.x, aPos.y, aPos.z);
vec4 clipPos = projection * rotView * vec4(aPos, 1.0);
gl_Position = clipPos.xyww;