Overte C++ Documentation
Tonemapping.h
1 //
2 // Tonemapping.h
3 // libraries/graphics/src/graphics
4 //
5 // Created by HifiExperiments on 6/24/24
6 // Copyright 2024 Overte e.V.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 #ifndef hifi_model_Tonemapping_h
12 #define hifi_model_Tonemapping_h
13 
14 #include <memory>
15 
16 #include <TonemappingCurve.h>
17 
18 namespace graphics {
19  class Tonemapping {
20  public:
21  Tonemapping() {}
22 
23  void setCurve(const TonemappingCurve curve) { _curve = curve; }
24  void setExposure(const float exposure) { _exposure = exposure; }
25 
26  TonemappingCurve getCurve() const { return _curve; }
27  float getExposure() const { return _exposure; }
28 
29  private:
30  TonemappingCurve _curve { TonemappingCurve::SRGB };
31  float _exposure { 0.0f };
32  };
33  using TonemappingPointer = std::shared_ptr<Tonemapping>;
34 }
35 #endif // hifi_model_Tonemapping_h