Atom/mriegger/normaloffsetbias (#4841)
* Adding directional light shadow bias Signed-off-by: mrieggeramzn <mriegger@amazon.com> * Adding normal offset bias to the directional shadow maps Signed-off-by: mrieggeramzn <mriegger@amazon.com> * not time yet for this Signed-off-by: mrieggeramzn <mriegger@amazon.com> * small comment fix Signed-off-by: mrieggeramzn <mriegger@amazon.com> * fixing tabs Signed-off-by: mrieggeramzn <mriegger@amazon.com>
This commit is contained in:
@@ -151,6 +151,14 @@ namespace AZ::Render
|
||||
shadowProperty.m_bias = bias;
|
||||
}
|
||||
|
||||
void ProjectedShadowFeatureProcessor::SetNormalShadowBias(ShadowId id, float normalShadowBias)
|
||||
{
|
||||
AZ_Assert(id.IsValid(), "Invalid ShadowId passed to ProjectedShadowFeatureProcessor::SetNormalShadowBias().");
|
||||
|
||||
ShadowProperty& shadowProperty = GetShadowPropertyFromShadowId(id);
|
||||
shadowProperty.m_normalShadowBias = normalShadowBias;
|
||||
}
|
||||
|
||||
void ProjectedShadowFeatureProcessor::SetShadowmapMaxResolution(ShadowId id, ShadowmapSize size)
|
||||
{
|
||||
AZ_Assert(id.IsValid(), "Invalid ShadowId passed to ProjectedShadowFeatureProcessor::SetShadowmapMaxResolution().");
|
||||
|
||||
Reference in New Issue
Block a user