Selaa lähdekoodia

Reset passes before baking. Fixes baking when using culling

trethaller 6 vuotta sitten
vanhempi
commit
ff1a4051c5
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;
 		}