mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 05:01:09 +00:00
- fixed: the attenuation flag wasn't passed to the shader if shadowmaps were disabled.
This commit is contained in:
parent
80b5a66635
commit
efbd80c325
1 changed files with 2 additions and 2 deletions
|
@ -111,10 +111,10 @@ void AddLightToList(FDynLightData &dld, int group, FDynamicLight * light, bool f
|
|||
{
|
||||
shadowIndex = light->mShadowmapIndex + 1.0f;
|
||||
|
||||
// Store attenuate flag in the sign bit of the float.
|
||||
if (light->IsAttenuated() || forceAttenuate) shadowIndex = -shadowIndex;
|
||||
}
|
||||
else shadowIndex = 1025.f;
|
||||
// Store attenuate flag in the sign bit of the float.
|
||||
if (light->IsAttenuated() || forceAttenuate) shadowIndex = -shadowIndex;
|
||||
|
||||
float lightType = 0.0f;
|
||||
float spotInnerAngle = 0.0f;
|
||||
|
|
Loading…
Reference in a new issue