BsPostProcessSettings.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsPostProcessSettings.h"
  4. #include "BsPostProcessSettingsRTTI.h"
  5. namespace BansheeEngine
  6. {
  7. AutoExposureSettings::AutoExposureSettings()
  8. : histogramLog2Min(-8.0f), histogramLog2Max(4.0f), histogramPctLow(0.8f), histogramPctHigh(0.985f)
  9. , minEyeAdaptation(0.3f), maxEyeAdaptation(2.0f), eyeAdaptationSpeedUp(3.0f), eyeAdaptationSpeedDown(3.0f)
  10. { }
  11. TonemappingSettings::TonemappingSettings()
  12. : filmicCurveShoulderStrength(0.15f), filmicCurveLinearStrength(0.5f), filmicCurveLinearAngle(0.1f)
  13. , filmicCurveToeStrength(0.2f), filmicCurveToeNumerator(0.02f), filmicCurveToeDenominator(0.3f)
  14. , filmicCurveLinearWhitePoint(11.2f)
  15. { }
  16. WhiteBalanceSettings::WhiteBalanceSettings()
  17. : temperature(6500.0f), tint(0.0f)
  18. { }
  19. ColorGradingSettings::ColorGradingSettings()
  20. : saturation(Vector3::ONE), contrast(Vector3::ONE), gain(Vector3::ONE), offset(Vector3::ZERO)
  21. { }
  22. PostProcessSettings::PostProcessSettings()
  23. : enableAutoExposure(true), enableTonemapping(true), exposureScale(0.0f), gamma(2.2f)
  24. { }
  25. SPtr<PostProcessSettings> PostProcessSettings::create()
  26. {
  27. return bs_shared_ptr_new<PostProcessSettings>();
  28. }
  29. RTTITypeBase* PostProcessSettings::getRTTIStatic()
  30. {
  31. return PostProcessSettingsRTTI::instance();
  32. }
  33. RTTITypeBase* PostProcessSettings::getRTTI() const
  34. {
  35. return PostProcessSettings::getRTTIStatic();
  36. }
  37. }