Skip to content

Commit

Permalink
- fixed: the attenuation flag wasn't passed to the shader if shadowma…
Browse files Browse the repository at this point in the history
…ps were disabled.
  • Loading branch information
coelckers committed Jun 12, 2020
1 parent 80b5a66 commit efbd80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendering/hwrenderer/hw_dynlightdata.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit efbd80c

Please sign in to comment.