|
|
|
@ -70,6 +70,8 @@ namespace AZ::Render
|
|
|
|
->Event("SetEnableShadow", &AreaLightRequestBus::Events::SetEnableShadow)
|
|
|
|
->Event("SetEnableShadow", &AreaLightRequestBus::Events::SetEnableShadow)
|
|
|
|
->Event("GetShadowBias", &AreaLightRequestBus::Events::GetShadowBias)
|
|
|
|
->Event("GetShadowBias", &AreaLightRequestBus::Events::GetShadowBias)
|
|
|
|
->Event("SetShadowBias", &AreaLightRequestBus::Events::SetShadowBias)
|
|
|
|
->Event("SetShadowBias", &AreaLightRequestBus::Events::SetShadowBias)
|
|
|
|
|
|
|
|
->Event("GetNormalShadowBias", &AreaLightRequestBus::Events::GetNormalShadowBias)
|
|
|
|
|
|
|
|
->Event("SetNormalShadowBias", &AreaLightRequestBus::Events::SetNormalShadowBias)
|
|
|
|
->Event("GetShadowmapMaxSize", &AreaLightRequestBus::Events::GetShadowmapMaxSize)
|
|
|
|
->Event("GetShadowmapMaxSize", &AreaLightRequestBus::Events::GetShadowmapMaxSize)
|
|
|
|
->Event("SetShadowmapMaxSize", &AreaLightRequestBus::Events::SetShadowmapMaxSize)
|
|
|
|
->Event("SetShadowmapMaxSize", &AreaLightRequestBus::Events::SetShadowmapMaxSize)
|
|
|
|
->Event("GetShadowFilterMethod", &AreaLightRequestBus::Events::GetShadowFilterMethod)
|
|
|
|
->Event("GetShadowFilterMethod", &AreaLightRequestBus::Events::GetShadowFilterMethod)
|
|
|
|
@ -91,6 +93,7 @@ namespace AZ::Render
|
|
|
|
|
|
|
|
|
|
|
|
->VirtualProperty("ShadowsEnabled", "GetEnableShadow", "SetEnableShadow")
|
|
|
|
->VirtualProperty("ShadowsEnabled", "GetEnableShadow", "SetEnableShadow")
|
|
|
|
->VirtualProperty("ShadowBias", "GetShadowBias", "SetShadowBias")
|
|
|
|
->VirtualProperty("ShadowBias", "GetShadowBias", "SetShadowBias")
|
|
|
|
|
|
|
|
->VirtualProperty("NormalShadowBias", "GetNormalShadowBias", "SetNormalShadowBias")
|
|
|
|
->VirtualProperty("ShadowmapMaxSize", "GetShadowmapMaxSize", "SetShadowmapMaxSize")
|
|
|
|
->VirtualProperty("ShadowmapMaxSize", "GetShadowmapMaxSize", "SetShadowmapMaxSize")
|
|
|
|
->VirtualProperty("ShadowFilterMethod", "GetShadowFilterMethod", "SetShadowFilterMethod")
|
|
|
|
->VirtualProperty("ShadowFilterMethod", "GetShadowFilterMethod", "SetShadowFilterMethod")
|
|
|
|
->VirtualProperty("FilteringSampleCount", "GetFilteringSampleCount", "SetFilteringSampleCount")
|
|
|
|
->VirtualProperty("FilteringSampleCount", "GetFilteringSampleCount", "SetFilteringSampleCount")
|
|
|
|
@ -302,6 +305,7 @@ namespace AZ::Render
|
|
|
|
if (m_configuration.m_enableShadow)
|
|
|
|
if (m_configuration.m_enableShadow)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_lightShapeDelegate->SetShadowBias(m_configuration.m_bias);
|
|
|
|
m_lightShapeDelegate->SetShadowBias(m_configuration.m_bias);
|
|
|
|
|
|
|
|
m_lightShapeDelegate->SetNormalShadowBias(m_configuration.m_normalShadowBias);
|
|
|
|
m_lightShapeDelegate->SetShadowmapMaxSize(m_configuration.m_shadowmapMaxSize);
|
|
|
|
m_lightShapeDelegate->SetShadowmapMaxSize(m_configuration.m_shadowmapMaxSize);
|
|
|
|
m_lightShapeDelegate->SetShadowFilterMethod(m_configuration.m_shadowFilterMethod);
|
|
|
|
m_lightShapeDelegate->SetShadowFilterMethod(m_configuration.m_shadowFilterMethod);
|
|
|
|
m_lightShapeDelegate->SetFilteringSampleCount(m_configuration.m_filteringSampleCount);
|
|
|
|
m_lightShapeDelegate->SetFilteringSampleCount(m_configuration.m_filteringSampleCount);
|
|
|
|
@ -474,6 +478,20 @@ namespace AZ::Render
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AreaLightComponentController::SetNormalShadowBias(float bias)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_configuration.m_normalShadowBias = bias;
|
|
|
|
|
|
|
|
if (m_lightShapeDelegate)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_lightShapeDelegate->SetNormalShadowBias(bias);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
float AreaLightComponentController::GetNormalShadowBias() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return m_configuration.m_normalShadowBias;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ShadowmapSize AreaLightComponentController::GetShadowmapMaxSize() const
|
|
|
|
ShadowmapSize AreaLightComponentController::GetShadowmapMaxSize() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return m_configuration.m_shadowmapMaxSize;
|
|
|
|
return m_configuration.m_shadowmapMaxSize;
|
|
|
|
|