Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE2_OGRE2LIGHT_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2LIGHT_HH_
33 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
46 public:
virtual math::Color DiffuseColor()
const override;
49 public:
virtual void SetDiffuseColor(
const math::Color &_color)
override;
52 public:
virtual math::Color SpecularColor()
const override;
55 public:
virtual void SetSpecularColor(
const math::Color &_color)
override;
58 public:
virtual double AttenuationConstant()
const override;
61 public:
virtual void SetAttenuationConstant(
double _value)
override;
64 public:
virtual double AttenuationLinear()
const override;
67 public:
virtual void SetAttenuationLinear(
double _value)
override;
70 public:
virtual double AttenuationQuadratic()
const override;
73 public:
virtual void SetAttenuationQuadratic(
double _value)
override;
76 public:
virtual double AttenuationRange()
const override;
79 public:
virtual void SetAttenuationRange(
double _range)
override;
82 public:
virtual bool CastShadows()
const override;
85 public:
virtual void SetCastShadows(
bool _castShadows)
override;
88 public:
virtual Ogre::Light *
Light()
const;
91 public:
virtual void Destroy()
override;
94 protected:
virtual void Init()
override;
97 private:
void CreateLight();
100 private:
void UpdateAttenuation();
103 protected:
double attenConstant = 1.0;
106 protected:
double attenLinear = 0.0;
109 protected:
double attenQuadratic = 0.0;
112 protected:
double attenRange = 100.0;
115 protected: Ogre::Light *ogreLight =
nullptr;
135 public:
virtual void SetDirection(
const math::Vector3d &_dir)
override;
169 public:
virtual void SetDirection(
const math::Vector3d &_dir)
override;
172 public:
virtual math::Angle InnerAngle()
const override;
175 public:
virtual void SetInnerAngle(
const math::Angle &_angle)
override;
178 public:
virtual math::Angle OuterAngle()
const override;
181 public:
virtual void SetOuterAngle(
const math::Angle &_angle)
override;
184 public:
virtual double Falloff()
const override;
187 public:
virtual void SetFalloff(
double _falloff)
override;
Ogre 2.x implementation of the light class.
Definition: gz/rendering/ogre2/Ogre2Light.hh:36
Definition: gz/rendering/base/BaseLight.hh:97
Definition: gz/rendering/ogre/OgreCamera.hh:27
Definition: gz/rendering/base/BaseLight.hh:71
Definition: gz/rendering/base/BaseLight.hh:87
Ogre 2.x implementation of the spot light class.
Definition: gz/rendering/ogre2/Ogre2Light.hh:156
Ogre 2.x implementation of the point light class.
Definition: gz/rendering/ogre2/Ogre2Light.hh:142
Definition: gz/rendering/base/BaseLight.hh:29
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:41
Ogre 2.x implementation of the directional light class.
Definition: gz/rendering/ogre2/Ogre2Light.hh:122
Represents a light source in the scene graph.
Definition: gz/rendering/Light.hh:32
Ogre::Light::LightTypes ogreLightType
Light type.
Definition: gz/rendering/ogre2/Ogre2Light.hh:118