SO3Engine
|
#include <SO3DeferredLight.h>
Public Member Functions | |
SDeferredLight (Ogre::Light *originalLight) | |
~SDeferredLight () | |
void | UpdateFromParent () |
void | UpdateFromCamera (Ogre::Camera *camera) |
Ogre::SimpleRenderable * | GetRenderable () |
bool | GetCastShadows () |
bool | GetDebugRendering () |
void | SetDebugRendering (bool enableDebugRendering) |
Protected Member Functions | |
void | SetAttenuation () |
Protected Attributes | |
Ogre::Light * | ogreParentLight |
The light that this SDeferredLight renders. | |
Ogre::Light::LightTypes | currentType |
bool | ignoreWorld |
Mode to ignore world orientation/position. | |
float | radius |
Bounding sphere radius. | |
SDeferredLightImpl * | currentDeferredLight |
Deferred light geometry. Each instance matches a normal light. Automaticly created by the deferred shading system.
The benefit is that shaders code is simpler.
Definition at line 44 of file SO3DeferredLight.h.
SO3::SDeferredLight::SDeferredLight | ( | Ogre::Light * | originalLight | ) |
Definition at line 41 of file SO3DeferredLight.cpp.
SO3::SDeferredLight::~SDeferredLight | ( | ) |
Definition at line 49 of file SO3DeferredLight.cpp.
bool SO3::SDeferredLight::GetCastShadows | ( | ) |
Definition at line 131 of file SO3DeferredLight.cpp.
bool SO3::SDeferredLight::GetDebugRendering | ( | ) |
Return if the debug rendering is activated.
Definition at line 142 of file SO3DeferredLight.cpp.
Ogre::SimpleRenderable * SO3::SDeferredLight::GetRenderable | ( | ) |
Definition at line 136 of file SO3DeferredLight.cpp.
|
protected |
Check if the camera is inside a light
Set constant, linear, quadratic Attenuation terms
Definition at line 54 of file SO3DeferredLight.cpp.
void SO3::SDeferredLight::SetDebugRendering | ( | bool | enableDebugRendering | ) |
Draw the area the light covers as a geometry, for debugging purpose.
Definition at line 147 of file SO3DeferredLight.cpp.
void SO3::SDeferredLight::UpdateFromCamera | ( | Ogre::Camera * | camera | ) |
Update the information that is related to the camera
Definition at line 88 of file SO3DeferredLight.cpp.
void SO3::SDeferredLight::UpdateFromParent | ( | ) |
Update the information from the light that matches this one
Definition at line 60 of file SO3DeferredLight.cpp.
|
protected |
Definition at line 52 of file SO3DeferredLight.h.
|
protected |
Definition at line 49 of file SO3DeferredLight.h.
|
protected |
Mode to ignore world orientation/position.
Definition at line 50 of file SO3DeferredLight.h.
|
protected |
The light that this SDeferredLight renders.
Definition at line 48 of file SO3DeferredLight.h.
|
protected |
Bounding sphere radius.
Definition at line 51 of file SO3DeferredLight.h.