Browse Source

Revert foward lighting.

clementlandrin 4 years ago
parent
commit
0fc27ad04f
1 changed files with 1 additions and 2 deletions
  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 {
 	override function initLights( ctx : h3d.scene.RenderContext ) @:privateAccess {
 		super.initLights(ctx);
 		super.initLights(ctx);
-		if (forwardMode)
-			lightBuffer.sync(ctx);
+		lightBuffer.sync(ctx);
 	}
 	}
 
 
 	public function drawShadows( light : Light, passes : h3d.pass.PassList ) {
 	public function drawShadows( light : Light, passes : h3d.pass.PassList ) {