WestLangley 2 лет назад
Родитель
Сommit
18a5375fff
2 измененных файлов с 6 добавлено и 4 удалено
  1. 3 2
      src/renderers/webgl/WebGLBackground.js
  2. 3 2
      src/renderers/webgl/WebGLMaterials.js

+ 3 - 2
src/renderers/webgl/WebGLBackground.js

@@ -116,8 +116,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.x *= - 1;
+				// environment maps which are not cube render targets or PMREMs follow a different convention
+				_e1.y *= - 1;
+				_e1.z *= - 1;
 
 			}
 

+ 3 - 2
src/renderers/webgl/WebGLMaterials.js

@@ -230,8 +230,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;
 
 			}
 

粤ICP备19079148号