SO3Engine
|
SO3DeferredLightImpl.cpp
Go to the documentation of this file.
32SDeferredLightImpl::SDeferredLightImpl(Ogre::Light* originalLight, std::string lightTypeName, SDeferredLightMaterialGenerator* typeLightMaterialGenerator) : ogreParentLight(originalLight),
64 return (ogreParentLight->_getManager()->isShadowTechniqueInUse() && ogreParentLight->getCastShadows() && (ogreParentLight->getType() == Ogre::Light::LT_DIRECTIONAL || ogreParentLight->getType() == Ogre::Light::LT_SPOTLIGHT));
92 return lightMaterialGenerator->GetMaterial(SDeferredShading::getSingleton().GetGBuffer(), lightPermutation);
bool GetDebugRendering()
Definition SO3DeferredLightImpl.cpp:70
virtual const Ogre::MaterialPtr & getMaterial() const
Definition SO3DeferredLightImpl.cpp:80
void SetDebugRendering(bool enableDebugRendering)
Definition SO3DeferredLightImpl.cpp:75
Ogre::Light * ogreParentLight
The light that this SDeferredLight renders.
Definition SO3DeferredLightImpl.h:42
~SDeferredLightImpl()
Definition SO3DeferredLightImpl.cpp:47
bool GetCastShadows() const
Definition SO3DeferredLightImpl.cpp:60
@ SO3_LP_DEBUG
Definition SO3DeferredLightPermutation.h:43
@ SO3_LP_CAST_SHADOWS
Definition SO3DeferredLightPermutation.h:42
static SDeferredShading & getSingleton()
Definition SO3DeferredShading.cpp:144
const Ogre::MaterialPtr & GetMaterial(SGBuffer *gbuffer, PERMUTATION_CLASS permutation)
Definition SO3MaterialGenerator.h:275
Definition SO3DataScol.h:38
Generated by 1.9.8