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;