浏览代码

fixed direction

Nicolas Cannasse 5 年之前
父节点
当前提交
a3fe6705a3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/rfx/AutoExposure.hx

+ 1 - 1
hrt/prefab/rfx/AutoExposure.hx

@@ -42,7 +42,7 @@ class AutoExposure extends RendererFX {
 			l = l.next;
 		}
 		if( mainLight != null ) {
-			var lightDir = mainLight.getDirection();
+			var lightDir = mainLight.getAbsPos().front();
 			var camDir = r.ctx.camera.target.sub(r.ctx.camera.pos);
 			if( !useLightZ ) {
 				lightDir.z = 0;