Browse Source

Revert foward lighting.

clementlandrin 4 năm trước cách đây
mục cha
commit
0fc27ad04f
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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 ) {