|
@@ -14871,8 +14871,9 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
|
|
|
|
|
|
if ( background.isCubeTexture && background.isRenderTargetTexture === false ) {
|
|
|
|
|
|
- // environment maps which are no cube render targets or PMREMs follow a different px/nx convention
|
|
|
- _e1$1.x *= - 1;
|
|
|
+ // environment maps which are not cube render targets or PMREMs follow a different convention
|
|
|
+ _e1$1.y *= - 1;
|
|
|
+ _e1$1.z *= - 1;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -27938,8 +27939,9 @@ function WebGLMaterials( renderer, properties ) {
|
|
|
|
|
|
if ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) {
|
|
|
|
|
|
- // environment maps which are no cube render targets or PMREMs follow a different px/nx convention
|
|
|
- _e1.x *= - 1;
|
|
|
+ // environment maps which are not cube render targets or PMREMs follow a different convention
|
|
|
+ _e1.y *= - 1;
|
|
|
+ _e1.z *= - 1;
|
|
|
|
|
|
}
|
|
|
|