| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <AzCore/RTTI/ReflectContext.h>
- #include <Atom/RHI.Reflect/ShaderResourceGroupLayoutDescriptor.h>
- #include <Atom/Feature/PostProcess/WhiteBalance/WhiteBalanceSettingsInterface.h>
- #include <Atom/RPI.Public/Image/StreamingImage.h>
- #include <PostProcess/PostProcessBase.h>
- #include <Atom/RPI.Public/View.h>
- namespace AZ
- {
- namespace Render
- {
- class PostProcessSettings;
- class WhiteBalanceSettings final
- : public WhiteBalanceSettingsInterface
- , public PostProcessBase
- {
- friend class PostProcessSettings;
- friend class PostProcessFeatureProcessor;
- public:
- AZ_RTTI(
- AZ::Render::WhiteBalanceSettings,
- "{840ED42F-3C00-466B-ACCE-461A6A84D607}",
- AZ::Render::WhiteBalanceSettingsInterface,
- AZ::Render::PostProcessBase);
- AZ_CLASS_ALLOCATOR(WhiteBalanceSettings, SystemAllocator, 0);
- WhiteBalanceSettings(PostProcessFeatureProcessor* featureProcessor);
- ~WhiteBalanceSettings() = default;
- // BloomSettingsInterface overrides...
- void OnConfigChanged() override;
- // Applies settings from this onto target using override settings and passed alpha value for blending
- void ApplySettingsTo(WhiteBalanceSettings* target, float alpha) const;
- // Generate getters and setters.
- #include <Atom/Feature/ParamMacros/StartParamFunctionsOverrideImpl.inl>
- #include <Atom/Feature/PostProcess/WhiteBalance/WhiteBalanceParams.inl>
- #include <Atom/Feature/ParamMacros/EndParams.inl>
- private:
- // Generate members...
- #include <Atom/Feature/ParamMacros/StartParamMembers.inl>
- #include <Atom/Feature/PostProcess/WhiteBalance/WhiteBalanceParams.inl>
- #include <Atom/Feature/ParamMacros/EndParams.inl>
- void Simulate(float deltaTime);
- PostProcessSettings* m_parentSettings = nullptr;
- float m_deltaTime = 0.0f;
- };
- } // namespace Render
- } // namespace AZ
|