Преглед на файлове

Fix missing param with skyMode = Env and skyMap is null

ShiroSmith преди 5 години
родител
ревизия
90d6cfe6b4
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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;