Просмотр исходного кода

PMREMNode: Handle unresolved PMREM during setup (#33881)

Jure Triglav 2 недель назад
Родитель
Сommit
c0f2657b2c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/nodes/pmrem/PMREMNode.js

+ 1 - 1
src/nodes/pmrem/PMREMNode.js

@@ -343,7 +343,7 @@ class PMREMNode extends TempNode {
 		// PMREMGenerator renders into a render target with inverted Y, so its output needs the Y
 		// flip on sampling. Externally authored PMREMs follow the standard convention and don't.
 
-		uvNode = this._pmrem.isRenderTargetTexture
+		uvNode = this._pmrem === null || this._pmrem.isRenderTargetTexture
 			? materialEnvRotation.mul( vec3( uvNode.x, uvNode.y.negate(), uvNode.z ) )
 			: materialEnvRotation.mul( uvNode );
 

粤ICP备19079148号