Explorar o código

Reset passes before baking. Fixes baking when using culling

trethaller %!s(int64=6) %!d(string=hai) anos
pai
achega
ff1a4051c5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 		}