Merge pull request #413 from aws-lumberyard-dev/Atom/guthadam/ATOM-4849

ATOM-4849 Update default lighting preset values
This commit is contained in:
Guthrie Adams
2021-04-30 16:04:21 -05:00
committed by GitHub
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)