|
|
|
|
@ -84,7 +84,9 @@ namespace AZ::Render
|
|
|
|
|
->Event("SetFilteringSampleCount", &AreaLightRequestBus::Events::SetFilteringSampleCount)
|
|
|
|
|
->Event("GetPcfMethod", &AreaLightRequestBus::Events::GetPcfMethod)
|
|
|
|
|
->Event("SetPcfMethod", &AreaLightRequestBus::Events::SetPcfMethod)
|
|
|
|
|
|
|
|
|
|
->Event("GetEsmExponent", &AreaLightRequestBus::Events::GetEsmExponent)
|
|
|
|
|
->Event("SetEsmExponent", &AreaLightRequestBus::Events::SetEsmExponent)
|
|
|
|
|
|
|
|
|
|
->VirtualProperty("AttenuationRadius", "GetAttenuationRadius", "SetAttenuationRadius")
|
|
|
|
|
->VirtualProperty("Color", "GetColor", "SetColor")
|
|
|
|
|
->VirtualProperty("EmitsLightBothDirections", "GetEmitsLightBothDirections", "SetEmitsLightBothDirections")
|
|
|
|
|
@ -101,8 +103,9 @@ namespace AZ::Render
|
|
|
|
|
->VirtualProperty("SofteningBoundaryWidthAngle", "GetSofteningBoundaryWidthAngle", "SetSofteningBoundaryWidthAngle")
|
|
|
|
|
->VirtualProperty("PredictionSampleCount", "GetPredictionSampleCount", "SetPredictionSampleCount")
|
|
|
|
|
->VirtualProperty("FilteringSampleCount", "GetFilteringSampleCount", "SetFilteringSampleCount")
|
|
|
|
|
->VirtualProperty("PcfMethod", "GetPcfMethod", "SetPcfMethod");
|
|
|
|
|
;
|
|
|
|
|
->VirtualProperty("PcfMethod", "GetPcfMethod", "SetPcfMethod")
|
|
|
|
|
->VirtualProperty("EsmExponent", "GetEsmExponent", "SetEsmExponent");
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -314,6 +317,7 @@ namespace AZ::Render
|
|
|
|
|
m_lightShapeDelegate->SetPredictionSampleCount(m_configuration.m_predictionSampleCount);
|
|
|
|
|
m_lightShapeDelegate->SetFilteringSampleCount(m_configuration.m_filteringSampleCount);
|
|
|
|
|
m_lightShapeDelegate->SetPcfMethod(m_configuration.m_pcfMethod);
|
|
|
|
|
m_lightShapeDelegate->SetEsmExponent(m_configuration.m_esmExponent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -565,6 +569,20 @@ namespace AZ::Render
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
float AreaLightComponentController::GetEsmExponent() const
|
|
|
|
|
{
|
|
|
|
|
return m_configuration.m_esmExponent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AreaLightComponentController::SetEsmExponent(float esmExponent)
|
|
|
|
|
{
|
|
|
|
|
m_configuration.m_esmExponent = esmExponent;
|
|
|
|
|
if (m_lightShapeDelegate)
|
|
|
|
|
{
|
|
|
|
|
m_lightShapeDelegate->SetEsmExponent(esmExponent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AreaLightComponentController::CreateLightShapeDelegate()
|
|
|
|
|
{
|
|
|
|
|
switch (m_configuration.m_lightType)
|
|
|
|
|
|