|
|
|
@ -49,58 +49,58 @@ namespace AZ
|
|
|
|
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
|
|
|
|
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
editContext->Class<DisplayMapperAcesParameters>(
|
|
|
|
editContext->Class<AcesParameterOverrides>(
|
|
|
|
"DisplayMapperAcesParameters", "")
|
|
|
|
"AcesParameterOverrides", "")
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
|
|
|
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
|
|
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
|
|
|
|
|
|
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &DisplayMapperAcesParameters::m_overrideDefaults, "Override Defaults",
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &AcesParameterOverrides::m_overrideDefaults, "Override Defaults",
|
|
|
|
"When enabled allows parameter overrides for ACES configuration")
|
|
|
|
"When enabled allows parameter overrides for ACES configuration")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
|
|
|
|
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &DisplayMapperAcesParameters::m_alterSurround, "Alter Surround",
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &AcesParameterOverrides::m_alterSurround, "Alter Surround",
|
|
|
|
"Apply gamma adjustment to compensate for dim surround")
|
|
|
|
"Apply gamma adjustment to compensate for dim surround")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &DisplayMapperAcesParameters::m_applyDesaturation, "Alter Desaturation",
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &AcesParameterOverrides::m_applyDesaturation, "Alter Desaturation",
|
|
|
|
"Apply desaturation to compensate for luminance difference")
|
|
|
|
"Apply desaturation to compensate for luminance difference")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &DisplayMapperAcesParameters::m_applyCATD60toD65, "Alter CAT D60 to D65",
|
|
|
|
AZ::Edit::UIHandlers::CheckBox, &AcesParameterOverrides::m_applyCATD60toD65, "Alter CAT D60 to D65",
|
|
|
|
"Apply Color appearance transform (CAT) from ACES white point to assumed observer adapted white point")
|
|
|
|
"Apply Color appearance transform (CAT) from ACES white point to assumed observer adapted white point")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
|
|
|
|
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
Edit::UIHandlers::Default, &DisplayMapperAcesParameters::m_cinemaLimitsBlack,
|
|
|
|
Edit::UIHandlers::Default, &AcesParameterOverrides::m_cinemaLimitsBlack,
|
|
|
|
"Cinema Limit (black)",
|
|
|
|
"Cinema Limit (black)",
|
|
|
|
"Reference black luminance value")
|
|
|
|
"Reference black luminance value")
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
Edit::UIHandlers::Default, &DisplayMapperAcesParameters::m_cinemaLimitsWhite,
|
|
|
|
Edit::UIHandlers::Default, &AcesParameterOverrides::m_cinemaLimitsWhite,
|
|
|
|
"Cinema Limit (white)",
|
|
|
|
"Cinema Limit (white)",
|
|
|
|
"Reference white luminance value")
|
|
|
|
"Reference white luminance value")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
|
|
|
|
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
Edit::UIHandlers::Vector2, &DisplayMapperAcesParameters::m_minPoint, "Min Point (luminance)",
|
|
|
|
Edit::UIHandlers::Vector2, &AcesParameterOverrides::m_minPoint, "Min Point (luminance)",
|
|
|
|
"Linear extension below this")
|
|
|
|
"Linear extension below this")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
Edit::UIHandlers::Vector2, &DisplayMapperAcesParameters::m_midPoint, "Mid Point (luminance)",
|
|
|
|
Edit::UIHandlers::Vector2, &AcesParameterOverrides::m_midPoint, "Mid Point (luminance)",
|
|
|
|
"Middle gray")
|
|
|
|
"Middle gray")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
Edit::UIHandlers::Vector2, &DisplayMapperAcesParameters::m_maxPoint, "Max Point (luminance)",
|
|
|
|
Edit::UIHandlers::Vector2, &AcesParameterOverrides::m_maxPoint, "Max Point (luminance)",
|
|
|
|
"Linear extension above this")
|
|
|
|
"Linear extension above this")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
|
|
|
|
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
AZ::Edit::UIHandlers::Default, &DisplayMapperAcesParameters::m_surroundGamma, "Surround Gamma",
|
|
|
|
AZ::Edit::UIHandlers::Default, &AcesParameterOverrides::m_surroundGamma, "Surround Gamma",
|
|
|
|
"Gamma adjustment to be applied to compensate for the condition of the viewing environment")
|
|
|
|
"Gamma adjustment to be applied to compensate for the condition of the viewing environment")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
AZ::Edit::UIHandlers::Default, &DisplayMapperAcesParameters::m_gamma, "Gamma",
|
|
|
|
AZ::Edit::UIHandlers::Default, &AcesParameterOverrides::m_gamma, "Gamma",
|
|
|
|
"Optional gamma value that is applied as basic gamma curve OETF")
|
|
|
|
"Optional gamma value that is applied as basic gamma curve OETF")
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
|
|
|
|
|
|
|
|
|
|
|
@ -108,14 +108,14 @@ namespace AZ
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::Group, "Load Preset")
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::Group, "Load Preset")
|
|
|
|
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
|
|
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
|
|
->DataElement(
|
|
|
|
->DataElement(
|
|
|
|
Edit::UIHandlers::ComboBox, &DisplayMapperAcesParameters::m_preset, "Preset Selection",
|
|
|
|
Edit::UIHandlers::ComboBox, &AcesParameterOverrides::m_preset, "Preset Selection",
|
|
|
|
"Allows specifying default preset for different ODT modes")
|
|
|
|
"Allows specifying default preset for different ODT modes")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_48Nits, "48 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_48Nits, "48 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_1000Nits, "1000 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_1000Nits, "1000 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_2000Nits, "2000 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_2000Nits, "2000 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_4000Nits, "4000 Nits")
|
|
|
|
->EnumAttribute(OutputDeviceTransformType::OutputDeviceTransformType_4000Nits, "4000 Nits")
|
|
|
|
->UIElement(AZ::Edit::UIHandlers::Button, "Load", "Load default preset")
|
|
|
|
->UIElement(AZ::Edit::UIHandlers::Button, "Load", "Load default preset")
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeNotify, &DisplayMapperAcesParameters::LoadPreset)
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeNotify, &AcesParameterOverrides::LoadPreset)
|
|
|
|
->Attribute(AZ::Edit::Attributes::ButtonText, "Load")
|
|
|
|
->Attribute(AZ::Edit::Attributes::ButtonText, "Load")
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|