17 #ifndef GZ_RENDERING_OGRE2_OGRE2LIGHT_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2LIGHT_HH_
26 #pragma warning(push, 0)
28 #include <OgreLight.h>
42 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
45 class Ogre2LightPrivate;
110 public:
virtual Ogre::Light *
Light()
const;
116 protected:
virtual void Init()
override;
119 private:
void CreateLight();
122 private:
void UpdateAttenuation();
125 protected:
double attenConstant = 1.0;
128 protected:
double attenLinear = 0.0;
131 protected:
double attenQuadratic = 0.0;
134 protected:
double attenRange = 100.0;
137 protected: Ogre::Light *ogreLight =
nullptr;
209 public:
virtual double Falloff()
const override;