EditorFilmGrainComponent.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <Atom/Feature/PostProcess/DepthOfField/DepthOfFieldConstants.h>
  10. #include <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  11. #include <PostProcess/FilmGrain/FilmGrainComponent.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. namespace FilmGrain
  17. {
  18. static constexpr const char* const EditorFilmGrainComponentTypeId = "{61D39B81-DE19-482B-97FF-3761F2C25E4D}";
  19. }
  20. class EditorFilmGrainComponent final
  21. : public AzToolsFramework::Components::
  22. EditorComponentAdapter<FilmGrainComponentController, FilmGrainComponent, FilmGrainComponentConfig>
  23. {
  24. public:
  25. using BaseClass = AzToolsFramework::Components::
  26. EditorComponentAdapter<FilmGrainComponentController, FilmGrainComponent, FilmGrainComponentConfig>;
  27. AZ_EDITOR_COMPONENT(AZ::Render::EditorFilmGrainComponent, FilmGrain::EditorFilmGrainComponentTypeId, BaseClass);
  28. static void Reflect(AZ::ReflectContext* context);
  29. EditorFilmGrainComponent() = default;
  30. EditorFilmGrainComponent(const FilmGrainComponentConfig& config);
  31. //! EditorRenderComponentAdapter overrides...
  32. AZ::u32 OnConfigurationChanged() override;
  33. };
  34. } // namespace Render
  35. } // namespace AZ