LensFlareCompositorListener Class Reference

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...
 

Detailed Description

We'll create an instance of this class for each camera, to be used to inject lens flare uniforms in each render call.

Constructor & Destructor Documentation

◆ LensFlareCompositorListener()

LensFlareCompositorListener ( CameraPtr  _camera,
LightPtr  _light 
)

Constructor.

◆ ~LensFlareCompositorListener()

Destructor.

Member Function Documentation

◆ notifyMaterialRender()

virtual void notifyMaterialRender ( unsigned int  _passId,
Ogre::MaterialPtr &  _mat 
)
virtual

Callback that OGRE will invoke for us on each render call.

Parameters
[in]_passIDOGRE material pass ID.
[in]_matPointer to OGRE material.

◆ SetColor()

void SetColor ( const ignition::math::Vector3d &  _color)

Set the color of lens flare.

Parameters
[in]_colorColor of lens flare

◆ SetLight()

void SetLight ( LightPtr  _light)

Set directional light that generates lens flare.

Parameters
[in]_lightPointer to directional light

◆ SetScale()

void SetScale ( const double  _scale)

Set the scale of lens flare.

Parameters
[in]_scaleScale of lens flare

The documentation for this class was generated from the following file: