From f6169030dcbc9fd1069eda5bafcb3be44841f3ef Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Thu, 6 Aug 2015 15:14:32 +0200 Subject: [PATCH] Comment about range being ignored --- hw/xbox/nv2a_shaders.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xbox/nv2a_shaders.c b/hw/xbox/nv2a_shaders.c index edcdd9cc02..82370fd42c 100644 --- a/hw/xbox/nv2a_shaders.c +++ b/hw/xbox/nv2a_shaders.c @@ -343,6 +343,7 @@ static QString* generate_fixed_function(const ShaderState state, qstring_append_fmt(s, " vec3 VP = lightLocalPosition%d - tPosition.xyz/tPosition.w;\n" " float d = length(VP);\n" +//FIXME: if (d > lightLocalRange) { .. don't process this light .. } /* inclusive?! */ - what about directional lights? " VP = normalize(VP);\n" " float attenuation = 1.0 / (lightLocalAttenuation%d.x\n" " + lightLocalAttenuation%d.y * d\n"