mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Change the dynamic light cuttoff from 64 to 52.
64 was the cutoff used by GL1. Testing showed that 52 is better suited for GL3. Good levels to test this can be found in the Mines unit.
This commit is contained in:
parent
0314eafdaa
commit
8316dfe3d9
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ static const char* fragmentSrc3Dlm = MULTILINE_STRING(
|
||||||
|
|
||||||
vec3 lightToPos = dynLights[i].lightOrigin - passWorldCoord;
|
vec3 lightToPos = dynLights[i].lightOrigin - passWorldCoord;
|
||||||
float distLightToPos = length(lightToPos);
|
float distLightToPos = length(lightToPos);
|
||||||
float fact = max(0, intens - distLightToPos - 64); // FIXME: really -64 for DLIGHT_CUTOFF?
|
float fact = max(0, intens - distLightToPos - 52);
|
||||||
|
|
||||||
// also factor in angle between light and point on surface
|
// also factor in angle between light and point on surface
|
||||||
fact *= max(0, dot(passNormal, lightToPos/distLightToPos));
|
fact *= max(0, dot(passNormal, lightToPos/distLightToPos));
|
||||||
|
|
Loading…
Reference in a new issue