mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 05:41:49 +00:00
- Specular branch compile fix for light early-out check
This commit is contained in:
parent
c696e95ff2
commit
a20ac670dc
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ float blinnSpecularContribution(float diffuseContribution, vec3 lightDirection,
|
|||
vec2 pointLightAttenuation(vec4 lightpos, float lightcolorA)
|
||||
{
|
||||
float attenuation = max(lightpos.w - distance(pixelpos.xyz, lightpos.xyz),0.0) / lightpos.w;
|
||||
if (attenuation == 0.0) return 0.0;
|
||||
if (attenuation == 0.0) return vec2(0.0);
|
||||
#ifdef SUPPORTS_SHADOWMAPS
|
||||
float shadowIndex = abs(lightcolorA) - 1.0;
|
||||
attenuation *= shadowmapAttenuation(lightpos, shadowIndex);
|
||||
|
|
Loading…
Reference in a new issue