@ -11,6 +11,7 @@
*/
*/
# include <AtomLyIntegration/CommonFeatures/CoreLights/AreaLightComponentConfig.h>
# include <AtomLyIntegration/CommonFeatures/CoreLights/AreaLightComponentConfig.h>
# include <AzCore/std/limits.h>
namespace AZ
namespace AZ
{
{
@ -135,23 +136,15 @@ namespace AZ
case PhotometricUnit : : Nit :
case PhotometricUnit : : Nit :
return 0.0f ;
return 0.0f ;
case PhotometricUnit : : Ev100Luminance :
case PhotometricUnit : : Ev100Luminance :
return - 10.0f ;
return AZStd : : numeric_limits < float > : : lowest ( ) ;
}
}
return 0.0f ;
return 0.0f ;
}
}
float AreaLightComponentConfig : : GetIntensityMax ( ) const
float AreaLightComponentConfig : : GetIntensityMax ( ) const
{
{
switch ( m_intensityMode )
// While there is no hard-max, a max must be included when there is a hard min.
{
return AZStd : : numeric_limits < float > : : max ( ) ;
case PhotometricUnit : : Candela :
case PhotometricUnit : : Lumen :
case PhotometricUnit : : Nit :
return 1'000'000 .0f ;
case PhotometricUnit : : Ev100Luminance :
return 20.0f ;
}
return 0.0f ;
}
}
float AreaLightComponentConfig : : GetIntensitySoftMin ( ) const
float AreaLightComponentConfig : : GetIntensitySoftMin ( ) const