Fix cubemap shader;

This commit is contained in:
bjorn 2022-08-26 22:22:37 -07:00
parent 085550da33
commit d513b98ce2
1 changed files with 1 additions and 1 deletions

View File

@ -17,6 +17,6 @@ vec4 lovrmain() {
vec2 uv = uvs[VertexIndex % 6];
vec3 ray = vec3(uv, -1.);
mat3 inverseViewOrientation = transpose(mat3(ViewFromLocal));
Normal = normalize(inverseViewOrientation * (InverseProjection * vec4(ray, 1.)).xyz);
Normal = inverseViewOrientation * (InverseProjection * vec4(ray, 1.)).xyz;
return vec4(uv, 0, 1);
}