Sfoglia il codice sorgente

Reset passes before baking. Fixes baking when using culling

trethaller 6 anni fa
parent
commit
ff1a4051c5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      h3d/scene/pbr/Renderer.hx

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

@@ -228,6 +228,7 @@ class Renderer extends h3d.scene.Renderer {
 			if( plight != null ) {
 				plight.shadows.setContext(ctx);
 				plight.shadows.computeStatic(passes);
+				passes.reset();
 			}
 			light = light.next;
 		}