Adding tone mapping option to Material Editor
This commit is contained in:
+4
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <ACES/Aces.h>
|
||||
#include <AzCore/EBus/EBus.h>
|
||||
#include <AzCore/std/smart_ptr/shared_ptr.h>
|
||||
#include <Atom/Feature/Utils/LightingPreset.h>
|
||||
@@ -66,6 +67,9 @@ namespace MaterialEditor
|
||||
|
||||
//! Notify when field of view changes
|
||||
virtual void OnFieldOfViewChanged([[maybe_unused]] float fieldOfView) {}
|
||||
|
||||
//! Notify when tone mapping changes
|
||||
virtual void OnDisplayMapperOperationTypeChanged([[maybe_unused]] AZ::Render::DisplayMapperOperationType operationType) {}
|
||||
};
|
||||
|
||||
using MaterialViewportNotificationBus = AZ::EBus<MaterialViewportNotifications>;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <ACES/Aces.h>
|
||||
#include <AzCore/EBus/EBus.h>
|
||||
#include <AzCore/std/containers/set.h>
|
||||
#include <AzCore/std/string/string.h>
|
||||
@@ -147,6 +148,12 @@ namespace MaterialEditor
|
||||
|
||||
//! Get field of view
|
||||
virtual float GetFieldOfView() const = 0;
|
||||
|
||||
//! Set tone mapping type
|
||||
virtual void SetDisplayMapperOperationType(AZ::Render::DisplayMapperOperationType operationType) = 0;
|
||||
|
||||
//! Get tone mapping type
|
||||
virtual AZ::Render::DisplayMapperOperationType GetDisplayMapperOperationType() const = 0;
|
||||
};
|
||||
|
||||
using MaterialViewportRequestBus = AZ::EBus<MaterialViewportRequests>;
|
||||
|
||||
Reference in New Issue
Block a user