Deferred light geometry. More...
#include <DeferredLight.hh>
Public Member Functions | |
DeferredLight (MaterialGenerator *_gen, Ogre::Light *_parentLight, Ogre::MaterialPtr _vplMaterial) | |
Constructor. More... | |
~DeferredLight () | |
Destructor. More... | |
virtual Ogre::Real | getBoundingRadius (void) const |
virtual bool | getCastShadows () const |
Does this light cast shadows? More... | |
virtual const Ogre::MaterialPtr & | getMaterial (void) const |
Ogre::Light * | GetParentLight () |
virtual Ogre::Real | getSquaredViewDepth (const Ogre::Camera *) const |
virtual void | getWorldTransforms (Ogre::Matrix4 *_xform) const |
void | RenderVPLs (Ogre::SceneManager *_sm, Ogre::InstanceManager *_im) |
void | SetVPLCount (uint32_t _n, Ogre::SceneManager *_sm, Ogre::InstanceManager *_im) |
void | UpdateFromCamera (Ogre::Camera *_camera) |
Update the information that is related to the camera More... | |
void | UpdateFromParent () |
Update the information from the light that matches this one. More... | |
virtual void | UpdateRSM (const Ogre::TexturePtr &_shadowTex) |
virtual void | UpdateShadowInvProj (Ogre::Matrix4 &_invproj) |
Protected Member Functions | |
void | CreateCone (float _radius, float _height, int _nVerticesInBase) |
Create a cone. More... | |
void | CreateRectangle2D () |
Create a rectangle. More... | |
void | CreateSphere (float _radius, int _nRings, int _nSegments) |
Create a sphere geometry. More... | |
bool | IsCameraInsideLight (Ogre::Camera *_camera) |
Check if the camera is inside a light. More... | |
void | RebuildGeometry (float _radius) |
Create geometry for this light. More... | |
void | SetAttenuation (float _c, float _b, float _a) |
Set constant, linear, quadratic Attenuation terms. More... | |
void | SetSpecularColor (const Ogre::ColourValue &_col) |
Set the specular colour. More... | |
Protected Attributes | |
MaterialGenerator * | generator |
Deferred shading system this minilight is part of. More... | |
bool | ignoreWorld |
Mode to ignore world orientation/position. More... | |
Ogre::Light * | parentLight |
The light that this DLight renders. More... | |
unsigned int | permutation |
Material permutation. More... | |
float | radius |
Bounding sphere radius. More... | |
Ogre::MaterialPtr | VPLMaterial |
Deferred light geometry.
Each instance matches a normal light. Should not be created by the user. XXX support other types of light other than point lights.
gazebo::rendering::DeferredLight::DeferredLight | ( | MaterialGenerator * | _gen, |
Ogre::Light * | _parentLight, | ||
Ogre::MaterialPtr | _vplMaterial | ||
) |
Constructor.
gazebo::rendering::DeferredLight::~DeferredLight | ( | ) |
Destructor.
|
protected |
Create a cone.
|
protected |
Create a rectangle.
|
protected |
Create a sphere geometry.
|
virtual |
|
virtual |
Does this light cast shadows?
Referenced by gazebo::rendering::DeferredLightRenderOperation< techniquePolicy >::execute().
|
virtual |
|
inline |
|
virtual |
|
virtual |
|
protected |
Check if the camera is inside a light.
|
protected |
Create geometry for this light.
void gazebo::rendering::DeferredLight::RenderVPLs | ( | Ogre::SceneManager * | _sm, |
Ogre::InstanceManager * | _im | ||
) |
|
protected |
Set constant, linear, quadratic Attenuation terms.
|
protected |
Set the specular colour.
void gazebo::rendering::DeferredLight::SetVPLCount | ( | uint32_t | _n, |
Ogre::SceneManager * | _sm, | ||
Ogre::InstanceManager * | _im | ||
) |
void gazebo::rendering::DeferredLight::UpdateFromCamera | ( | Ogre::Camera * | _camera | ) |
Update the information that is related to the camera
Referenced by gazebo::rendering::DeferredLightRenderOperation< techniquePolicy >::execute().
void gazebo::rendering::DeferredLight::UpdateFromParent | ( | ) |
Update the information from the light that matches this one.
Referenced by gazebo::rendering::DeferredLightRenderOperation< techniquePolicy >::execute().
|
virtual |
|
virtual |
|
protected |
Deferred shading system this minilight is part of.
|
protected |
Mode to ignore world orientation/position.
|
protected |
The light that this DLight renders.
|
protected |
Material permutation.
|
protected |
Bounding sphere radius.
|
protected |