HairGlobalSettings.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 <Rendering/HairLightingModels.h>
  10. #include <AzCore/RTTI/ReflectContext.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. namespace Hair
  16. {
  17. //! Used by all hair components to control the shader options flags used by the hair
  18. //! rendering for lighting and various display features such as the Marschner lighting
  19. //! model components.
  20. struct HairGlobalSettings
  21. {
  22. AZ_TYPE_INFO(AZ::Render::Hair::HairGlobalSettings, "{B4175C42-9F4D-4824-9563-457A84C4983D}");
  23. static void Reflect(ReflectContext* context);
  24. bool m_enableShadows = true;
  25. bool m_enableDirectionalLights = true;
  26. bool m_enablePunctualLights = true;
  27. bool m_enableAreaLights = true;
  28. bool m_enableIBL = true;
  29. HairLightingModel m_hairLightingModel = HairLightingModel::Marschner;
  30. bool m_enableMarschner_R = true;
  31. bool m_enableMarschner_TRT = true;
  32. bool m_enableMarschner_TT = true;
  33. bool m_enableLongtitudeCoeff = true;
  34. bool m_enableAzimuthCoeff = true;
  35. };
  36. } // namespace Hair
  37. } // namespace Render
  38. } // namespace AZ