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

@@ -131,6 +131,7 @@ void PointLight::Draw(RenderContext& renderContext)
data.SourceRadius = SourceRadius;
data.SourceLength = SourceLength;
data.ContactShadowsLength = ContactShadowsLength;
data.IndirectLightingIntensity = IndirectLightingIntensity;
data.IESTexture = IESTexture ? IESTexture->GetTexture() : nullptr;
renderContext.List->PointLights.Add(data);
}