Explorar o código

Revert foward lighting.

clementlandrin %!s(int64=4) %!d(string=hai) anos
pai
achega
0fc27ad04f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      h3d/scene/pbr/LightSystem.hx

+ 1 - 2
h3d/scene/pbr/LightSystem.hx

@@ -36,8 +36,7 @@ class LightSystem extends h3d.scene.LightSystem {
 
 	override function initLights( ctx : h3d.scene.RenderContext ) @:privateAccess {
 		super.initLights(ctx);
-		if (forwardMode)
-			lightBuffer.sync(ctx);
+		lightBuffer.sync(ctx);
 	}
 
 	public function drawShadows( light : Light, passes : h3d.pass.PassList ) {