Atom/mriegger/normaloffsetbiasarealight (#4917)
* Adding directional light shadow bias * Adding normal offset bias for projected shadows Signed-off-by: mrieggeramzn <mriegger@amazon.com>
This commit is contained in:
@@ -155,8 +155,9 @@ namespace AZ::Render
|
||||
{
|
||||
AZ_Assert(id.IsValid(), "Invalid ShadowId passed to ProjectedShadowFeatureProcessor::SetNormalShadowBias().");
|
||||
|
||||
ShadowProperty& shadowProperty = GetShadowPropertyFromShadowId(id);
|
||||
shadowProperty.m_normalShadowBias = normalShadowBias;
|
||||
ShadowData& shadowData = m_shadowData.GetElement<ShadowDataIndex>(id.GetIndex());
|
||||
shadowData.m_normalShadowBias = normalShadowBias;
|
||||
m_deviceBufferNeedsUpdate = true;
|
||||
}
|
||||
|
||||
void ProjectedShadowFeatureProcessor::SetShadowmapMaxResolution(ShadowId id, ShadowmapSize size)
|
||||
|
||||
Reference in New Issue
Block a user