瀏覽代碼

Revert foward lighting.

clementlandrin 4 年之前
父節點
當前提交
0fc27ad04f
共有 1 個文件被更改,包括 1 次插入2 次删除
  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 ) {