diff --git a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/AreaLightComponentConfig.cpp b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/AreaLightComponentConfig.cpp index c9211e87a0..71bb17d6c0 100644 --- a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/AreaLightComponentConfig.cpp +++ b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/AreaLightComponentConfig.cpp @@ -11,6 +11,7 @@ */ #include +#include namespace AZ { @@ -135,23 +136,15 @@ namespace AZ case PhotometricUnit::Nit: return 0.0f; case PhotometricUnit::Ev100Luminance: - return -10.0f; + return AZStd::numeric_limits::lowest(); } return 0.0f; } float AreaLightComponentConfig::GetIntensityMax() const { - switch (m_intensityMode) - { - case PhotometricUnit::Candela: - case PhotometricUnit::Lumen: - case PhotometricUnit::Nit: - return 1'000'000.0f; - case PhotometricUnit::Ev100Luminance: - return 20.0f; - } - return 0.0f; + // While there is no hard-max, a max must be included when there is a hard min. + return AZStd::numeric_limits::max(); } float AreaLightComponentConfig::GetIntensitySoftMin() const