Overte C++ Documentation
NormalMapAttenuation.h
1 //
2 // NormalMapAttenuation.h
3 // libraries/graphics/src/graphics
4 //
5 // Created by HifiExperiments 7/3/25
6 // Copyright 2025 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_NormalMapAttenuation_h
12 #define hifi_model_NormalMapAttenuation_h
13 
14 #include <memory>
15 
16 namespace graphics {
17  class NormalMapAttenuation {
18  public:
19  NormalMapAttenuation() {}
20 
21  void setMin(const float min) { _min = min; }
22  void setMax(const float max) { _max = max; }
23 
24  float getMin() const { return _min; }
25  float getMax() const { return _max; }
26 
27  private:
28  float _min { 30.0f };
29  float _max { 100.0f };
30  };
31  using NormalMapAttenuationPointer = std::shared_ptr<NormalMapAttenuation>;
32 }
33 #endif // hifi_model_NormalMapAttenuation_h