|
@@ -619,7 +619,7 @@ ${_getEncodings()}
|
|
|
|
|
|
void main() {
|
|
|
gl_FragColor = vec4(0.0);
|
|
|
- gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vOutputDirection)).rgb;
|
|
|
+ gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ))).rgb;
|
|
|
gl_FragColor = linearToOutputTexel(gl_FragColor);
|
|
|
}
|
|
|
`,
|