3
0

BloomSettings.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/RTTI/ReflectContext.h>
  10. #include <Atom/RHI.Reflect/ShaderResourceGroupLayoutDescriptor.h>
  11. #include <Atom/Feature/PostProcess/Bloom/BloomSettingsInterface.h>
  12. #include <Atom/RPI.Public/Image/StreamingImage.h>
  13. #include <PostProcess/PostProcessBase.h>
  14. #include <Atom/RPI.Public/View.h>
  15. namespace AZ
  16. {
  17. namespace Render
  18. {
  19. class PostProcessSettings;
  20. // The post process sub-settings class for SSAO (Screen-Space Ambient Occlusion)
  21. class BloomSettings final
  22. : public BloomSettingsInterface
  23. , public PostProcessBase
  24. {
  25. friend class PostProcessSettings;
  26. friend class PostProcessFeatureProcessor;
  27. public:
  28. AZ_RTTI(AZ::Render::BloomSettings, "{9CDC625A-0545-494E-AB37-552A19741F6A}",
  29. AZ::Render::BloomSettingsInterface, AZ::Render::PostProcessBase);
  30. AZ_CLASS_ALLOCATOR(BloomSettings, SystemAllocator);
  31. BloomSettings(PostProcessFeatureProcessor* featureProcessor);
  32. ~BloomSettings() = default;
  33. // BloomSettingsInterface overrides...
  34. void OnConfigChanged() override;
  35. // Applies settings from this onto target using override settings and passed alpha value for blending
  36. void ApplySettingsTo(BloomSettings* target, float alpha) const;
  37. // Generate getters and setters.
  38. #include <Atom/Feature/ParamMacros/StartParamFunctionsOverrideImpl.inl>
  39. #include <Atom/Feature/PostProcess/Bloom/BloomParams.inl>
  40. #include <Atom/Feature/ParamMacros/EndParams.inl>
  41. private:
  42. // Generate members...
  43. #include <Atom/Feature/ParamMacros/StartParamMembers.inl>
  44. #include <Atom/Feature/PostProcess/Bloom/BloomParams.inl>
  45. #include <Atom/Feature/ParamMacros/EndParams.inl>
  46. void Simulate(float deltaTime);
  47. PostProcessSettings* m_parentSettings = nullptr;
  48. float m_deltaTime = 0.0f;
  49. };
  50. }
  51. }