Fix cubemap view direction
This commit is contained in:
parent
f98cb66feb
commit
b8915393ea
@ -9,7 +9,7 @@ out vec3 TexCoords;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
TexCoords = aPos;
|
TexCoords = vec3(-aPos.x, aPos.y, aPos.z);
|
||||||
vec4 clipPos = projection * rotView * vec4(aPos, 1.0);
|
vec4 clipPos = projection * rotView * vec4(aPos, 1.0);
|
||||||
|
|
||||||
gl_Position = clipPos.xyww;
|
gl_Position = clipPos.xyww;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user