Add IndirectLightingIntensity support for lights in Global Surface Atlas

This commit is contained in:
Wojciech Figat
2022-06-06 10:28:39 +02:00
parent 79220556df
commit 31d9802cf4
6 changed files with 11 additions and 0 deletions

View File

@@ -182,6 +182,7 @@ void SpotLight::Draw(RenderContext& renderContext)
data.CosOuterCone = _cosOuterCone;
data.InvCosConeDifference = _invCosConeDifference;
data.ContactShadowsLength = ContactShadowsLength;
data.IndirectLightingIntensity = IndirectLightingIntensity;
data.IESTexture = IESTexture ? IESTexture->GetTexture() : nullptr;
Vector3::Transform(Vector3::Up, GetOrientation(), data.UpVector);
data.OuterConeAngle = outerConeAngle;