From 9310a0a13cdb7a7161a6b583a32c24a84838e3c4 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Mon, 25 May 2020 00:43:45 +0200 Subject: [PATCH] nv2a: Don't normalize light direction --- hw/xbox/nv2a/nv2a_shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a/nv2a_shaders.c b/hw/xbox/nv2a/nv2a_shaders.c index 9684e148eb..1496bc3a69 100644 --- a/hw/xbox/nv2a/nv2a_shaders.c +++ b/hw/xbox/nv2a/nv2a_shaders.c @@ -535,7 +535,7 @@ GLSL_DEFINE(sceneAmbientColor, GLSL_LTCTXA(NV_IGRAPH_XF_LTCTXA_FR_AMB) ".xyz") i, i); qstring_append_fmt(body, " float attenuation = 1.0;\n" - " float nDotVP = max(0.0, dot(tNormal, normalize(vec3(lightInfiniteDirection%d))));\n" + " float nDotVP = max(0.0, dot(tNormal, vec3(lightInfiniteDirection%d)));\n" " float nDotHV = max(0.0, dot(tNormal, vec3(lightInfiniteHalfVector%d)));\n", i, i);