Camera lens flare compositor. More...
#include <rendering/rendering.hh>
Public Member Functions | |
LensFlare () | |
Constructor. More... | |
virtual | ~LensFlare () |
Destructor. More... | |
void | SetCamera (CameraPtr _camera) |
Set the camera which lensFlare will be applied to. More... | |
void | SetColor (const ignition::math::Vector3d &_color) |
Set the color of lens flare. More... | |
void | SetScale (const double _scale) |
Set the scale of lens flare. More... | |
Protected Member Functions | |
void | SetCameraImpl (CameraPtr _camera) |
Set camera stored in LensFlarePrivate. More... | |
void | SetLensFlareCompositorListener (std::shared_ptr< LensFlareCompositorListener > _listener) |
Set lensFlareCompositorListener stored in LensFlarePrivate. More... | |
void | SetLensFlareInstance (Ogre::CompositorInstance *_instance) |
Set lensFlareInstance stored in LensFlarePrivate. More... | |
void | Update () |
Update function to search light source. More... | |
Camera lens flare compositor.
This lens flare effect does not perform any depth checking so if the directional light is occluded by an object in the scene, lens flare will pass through the object. The lens flare's color is set by the shaders and not exposed through an API in this class.
LensFlare | ( | ) |
Constructor.
|
virtual |
Destructor.
void SetCamera | ( | CameraPtr | _camera | ) |
Set the camera which lensFlare will be applied to.
[in] | _camera | Camera to be distorted |
|
protected |
Set camera stored in LensFlarePrivate.
[in] | _camera | Camera to use in sensor. |
void SetColor | ( | const ignition::math::Vector3d & | _color | ) |
Set the color of lens flare.
[in] | _color | Color of lens flare |
|
protected |
Set lensFlareCompositorListener stored in LensFlarePrivate.
[in] | _listener | Shared pointer to object to be set. |
|
protected |
Set lensFlareInstance stored in LensFlarePrivate.
[in] | _instance | CompositorInstance to set |
void SetScale | ( | const double | _scale | ) |
Set the scale of lens flare.
Must be greater than 0.
[in] | _scale | Scale of lens flare |
|
protected |
Update function to search light source.