ATOM-4849 Update default lighting preset values

This is an effort to produce a decent looking lighting preset and shadow with the default settings

https://jira.agscollab.com/browse/ATOM-4849
This commit is contained in:
guthadam
2021-04-28 21:33:34 -05:00
parent ed74bb9166
commit 6821ce41e5
2 changed files with 6 additions and 5 deletions
@@ -61,13 +61,14 @@ namespace AZ
AZ_TYPE_INFO(AZ::Render::LightConfig, "{02644F52-9483-47A8-9028-37671695C34E}");
static void Reflect(AZ::ReflectContext* context);
AZ::Vector3 m_direction = AZ::Vector3::CreateAxisY();
// Setting default direction to produce a visible shadow
AZ::Vector3 m_direction = AZ::Vector3(1.0f / 3.0f, 1.0f / 3.0f, -1.0f / 3.0f);
AZ::Color m_color = AZ::Color::CreateOne();
float m_intensity = 1.0f;
uint16_t m_shadowCascadeCount = 1;
float m_shadowRatioLogarithmUniform = 0.5f;
uint16_t m_shadowCascadeCount = 4;
float m_shadowRatioLogarithmUniform = 1.0f;
float m_shadowFarClipDistance = 20.0f;
ShadowmapSize m_shadowmapSize = ShadowmapSize::Size1024;
ShadowmapSize m_shadowmapSize = ShadowmapSize::Size2048;
bool m_enableShadowDebugColoring = false;
};
@@ -30,7 +30,7 @@ namespace AZ
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
{
serializeContext->Class<ExposureControlConfig>()
->Version(3)
->Version(4)
->Field("compensateValue", &ExposureControlConfig::m_manualCompensationValue)
->Field("exposureControlType", &ExposureControlConfig::m_exposureControlType)
->Field("autoExposureMin", &ExposureControlConfig::m_autoExposureMin)