SO3Engine
|
SO3DeferredLightPoint.cpp
Go to the documentation of this file.
30SDeferredLightPoint::SDeferredLightPoint(Ogre::Light* originalLight, SDeferredLightMaterialGenerator* typeLightMaterialGenerator) : SDeferredLightImpl(originalLight, "Point", typeLightMaterialGenerator)
96 SBaseMeshsTools::CreateSphere(mRenderOp.vertexData, mRenderOp.indexData, radius, 10, 10, false, false);
117 xform->makeTransform(ogreParentLight->getDerivedPosition(), Ogre::Vector3::UNIT_SCALE, Ogre::Quaternion::IDENTITY);
124 // Check if the camera is inside the sphere geometry (small epsilon fix to account for the fact that we aren't a true sphere).
125 Ogre::Real distanceFromLight = camera->getDerivedPosition().distance(ogreParentLight->getDerivedPosition());
static Ogre::MeshPtr CreateSphere(const Ogre::String &strName, float radius, int nRings, int nSegments, bool bNormals, bool bTexCoords, Ogre::String groupName=Ogre::RGN_DEFAULT)
Definition SO3BaseMeshsTools.cpp:35
Ogre::Light * ogreParentLight
The light that this SDeferredLight renders.
Definition SO3DeferredLightImpl.h:42
~SDeferredLightPoint()
Definition SO3DeferredLightPoint.cpp:35
virtual void RebuildGeometry()
Definition SO3DeferredLightPoint.cpp:84
virtual void CheckCullingMode(Ogre::Camera *camera, Ogre::Pass *pass)
Definition SO3DeferredLightPoint.cpp:120
virtual void getWorldTransforms(Ogre::Matrix4 *xform) const
Definition SO3DeferredLightPoint.cpp:115
virtual void SetAttenuation()
Definition SO3DeferredLightPoint.cpp:39
virtual Ogre::Real getSquaredViewDepth(const Ogre::Camera *) const
Definition SO3DeferredLightPoint.cpp:109
SDeferredLightPoint(Ogre::Light *originalLight, SDeferredLightMaterialGenerator *typeLightMaterialGenerator)
Definition SO3DeferredLightPoint.cpp:30
virtual Ogre::Real getBoundingRadius() const
Definition SO3DeferredLightPoint.cpp:104
Definition SO3DataScol.h:38
Generated by 1.9.8