We'll create an instance of this class for each camera, to be used to inject lens flare uniforms in each render call. More...
#include <LensFlare.hh>
Inherits Listener.
Public Member Functions | |
| LensFlareCompositorListener (CameraPtr _camera, LightPtr _light) | |
| Constructor. More... | |
| ~LensFlareCompositorListener () | |
| Destructor. More... | |
| virtual void | notifyMaterialRender (unsigned int _passId, Ogre::MaterialPtr &_mat) |
| Callback that OGRE will invoke for us on each render call. More... | |
| void | SetColor (const ignition::math::Vector3d &_color) |
| Set the color of lens flare. More... | |
| void | SetLight (LightPtr _light) |
| Set directional light that generates lens flare. More... | |
| void | SetScale (const double _scale) |
| Set the scale of lens flare. More... | |
We'll create an instance of this class for each camera, to be used to inject lens flare uniforms in each render call.
| LensFlareCompositorListener | ( | CameraPtr | _camera, |
| LightPtr | _light | ||
| ) |
Constructor.
Destructor.
|
virtual |
Callback that OGRE will invoke for us on each render call.
| [in] | _passID | OGRE material pass ID. |
| [in] | _mat | Pointer to OGRE material. |
| void SetColor | ( | const ignition::math::Vector3d & | _color | ) |
Set the color of lens flare.
| [in] | _color | Color of lens flare |
| void SetLight | ( | LightPtr | _light | ) |
Set directional light that generates lens flare.
| [in] | _light | Pointer to directional light |
| void SetScale | ( | const double | _scale | ) |
Set the scale of lens flare.
| [in] | _scale | Scale of lens flare |