Kaynağa Gözat

fixed direction

Nicolas Cannasse 5 yıl önce
ebeveyn
işleme
a3fe6705a3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;