Explorar el Código

Fix missing param with skyMode = Env and skyMap is null

ShiroSmith hace 5 años
padre
commit
90d6cfe6b4
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      h3d/scene/pbr/Renderer.hx

+ 4 - 0
h3d/scene/pbr/Renderer.hx

@@ -383,6 +383,10 @@ class Renderer extends h3d.scene.Renderer {
 					pbrIndirect.gammaCorrect = true;
 					null;
 				};
+
+				if( pbrIndirect.skyMap == null && pbrIndirect.showSky && !pbrIndirect.skyColor )
+					pbrIndirect.showSky = false;
+
 			case LightProbe:
 				pbrIndirect.drawIndirectDiffuse = false;
 				pbrIndirect.drawIndirectSpecular = false;