79 void _calcTempSquareDist(
const Vector3& worldPos);
106 void setType(LightTypes type);
110 LightTypes getType(
void)
const;
147 void setSpecularColour(
Real red,
Real green,
Real blue);
183 void setAttenuation(
Real range,
Real constant,
Real linear,
Real quadratic);
187 Real getAttenuationRange(
void)
const;
191 Real getAttenuationConstant(
void)
const;
195 Real getAttenuationLinear(
void)
const;
199 Real getAttenuationQuadric(
void)
const;
215 void setPosition(
const Vector3& vec);
221 const Vector3& getPosition(
void)
const;
237 void setDirection(
const Vector3& vec);
243 const Vector3& getDirection(
void)
const;
255 void setSpotlightRange(
const Radian& innerAngle,
const Radian& outerAngle,
Real falloff = 1.0);
259 const Radian& getSpotlightInnerAngle(
void)
const;
263 const Radian& getSpotlightOuterAngle(
void)
const;
267 Real getSpotlightFalloff(
void)
const;
271 void setSpotlightInnerAngle(
const Radian& val);
275 void setSpotlightOuterAngle(
const Radian& val);
279 void setSpotlightFalloff(
Real val);
300 void setPowerScale(
Real power);
305 Real getPowerScale(
void)
const;
308 void _notifyAttached(
Node* parent,
bool isTagPoint =
false);
311 void _notifyMoved(
void);
320 const String& getMovableType(
void)
const;
325 const Vector3& getDerivedPosition(
bool cameraRelativeIfSet =
false)
const;
328 const Vector3& getDerivedDirection(
void)
const;
335 void setVisible(
bool visible);
349 Vector4 getAs4DVector(
bool cameraRelativeIfSet =
false)
const;
371 uint32 getTypeFlags(
void)
const;
387 void resetCustomShadowCameraSetup(
void);
394 bool debugRenderables =
false);
422 void setShadowFarDistance(
Real distance);
425 void resetShadowFarDistance(
void);
429 Real getShadowFarDistance(
void)
const;
430 Real getShadowFarDistanceSquared(
void)
const;
448 Real _deriveShadowNearClipDistance(
const Camera* maincam)
const;
469 Real _deriveShadowFarClipDistance(
const Camera* maincam)
const;
472 void _setCameraRelative(
Camera* cam);
519 virtual void _updateCustomGpuParameter(
uint16 paramIndex,
524 virtual void update(
void)
const;
527 const String& getAnimableDictionaryName(
void)
const;
529 void initialiseAnimableDictionary(
StringVector& vec)
const;
590 const String& getType(
void)
const;
A viewpoint from which the scene will be rendered.
bool mDerivedTransformDirty
Is the derived transform dirty?
float Real
Software floating point type.
Real getShadowFarClipDistance() const
Get the far clip plane distance to be used by the shadow camera, if this light casts texture shadows...
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
void setShadowNearClipDistance(Real nearClip)
Set the near clip plane distance to be used by the shadow camera, if this light casts texture shadows...
Real mShadowFarDistSquared
Class representing colour.
LightTypes
Defines the type of light.
A 3D box aligned with the x/y/z axes.
Camera * mCameraToBeRelativeTo
void setShadowFarClipDistance(Real farClip)
Set the far clip plane distance to be used by the shadow camera, if this light casts texture shadows...
Interface definition for a factory class which produces a certain kind of MovableObject, and can be registered with Root in order to allow all clients to produce new instances of this object, integrated with the standard Ogre processing.
bool mDerivedCamRelativeDirty
size_t _getIndexInFrame() const
Gets the index at which this light is in the current render.
static String FACTORY_TYPE_NAME
Abstract class defining a movable object in a scene.
vector< PlaneBoundedVolume >::type PlaneBoundedVolumeList
Representation of a dynamic light source in the scene.
Structure recording the use of an automatic parameter.
PlaneBoundedVolumeList mFrustumClipVolumes
Real getShadowNearClipDistance() const
Get the near clip plane distance to be used by the shadow camera, if this light casts texture shadows...
void _notifyIndexInFrame(size_t i)
static String msMovableType
Shared class-level name for Movable type.
ShadowCameraSetupPtr mCustomShadowCameraSetup
Pointer to a custom shadow camera setup.
Collects together the program parameters used for a GpuProgram.
Visitor object that can be used to iterate over a collection of Renderable instances abstractly...
vector< String >::type StringVector
Standard 3-dimensional vector.
PlaneBoundedVolume mNearClipVolume
Represents a convex volume bounded by planes.
void setSpotlightNearClipDistance(Real nearClip)
Set the near clip plane distance to be used by spotlights that use light clipping, allowing you to render spots as if they start from further down their frustum.
Wrapper class which indicates a given angle value is in Radians.
Class to manage the scene object rendering queue.
Vector3 mDerivedCamRelativePosition
Vector3 mDerivedDirection
4-dimensional homogeneous vector.
Real tempSquareDist
Temp tag used for sorting.
map< uint16, Vector4 >::type CustomParameterMap
Real getBoundingRadius(void) const
Overridden from MovableObject.
Real getSpotlightNearClipDistance() const
Get the near clip plane distance to be used by spotlights that use light clipping.
Class representing a general-purpose node an articulated scene graph.
CustomParameterMap mCustomParameters
Stores the custom parameters for the light.
Factory object for creating Light instances.