Scene node which is a dynamic light. More...
#include <ILightSceneNode.h>
Scene node which is a dynamic light.
You can switch the light on and off by making it visible or not. It can be animated by ordinary scene node animators. If the light type is directional or spot, the direction of the light source is defined by the rotation of the scene node (assuming (0,0,1) as the local direction of the light).
Definition at line 18 of file ILightSceneNode.h.
irr::scene::ILightSceneNode::ILightSceneNode | ( | ISceneNode * | parent, | |
ISceneManager * | mgr, | |||
s32 | id, | |||
const core::vector3df & | position = core::vector3df(0,0,0) | |||
) | [inline] |
constructor
Definition at line 14 of file ILightSceneNode.h.
References enableCastShadow(), getCastShadow(), getLightData(), getLightType(), getRadius(), irr::scene::ISceneNode::ISceneNode(), irr::scene::ISceneNode::isVisible(), setLightData(), setLightType(), setRadius(), and setVisible().
virtual void irr::scene::ILightSceneNode::enableCastShadow | ( | bool | shadow = true |
) | [pure virtual] |
Sets whether this light casts shadows.
Enabling this flag won't automatically cast shadows, the meshes will still need shadow scene nodes attached. But one can enable or disable distinct lights for shadow casting for performance reasons.
shadow | True if this light shall cast shadows. |
Referenced by ILightSceneNode().
virtual bool irr::scene::ILightSceneNode::getCastShadow | ( | ) | const [pure virtual] |
Check whether this light casts shadows.
Referenced by ILightSceneNode().
virtual const video::SLight& irr::scene::ILightSceneNode::getLightData | ( | ) | const [pure virtual] |
Gets the light data associated with this ILightSceneNode.
Referenced by ILightSceneNode().
virtual video::SLight& irr::scene::ILightSceneNode::getLightData | ( | ) | [pure virtual] |
Gets the light data associated with this ILightSceneNode.
virtual video::E_LIGHT_TYPE irr::scene::ILightSceneNode::getLightType | ( | ) | const [pure virtual] |
virtual f32 irr::scene::ILightSceneNode::getRadius | ( | ) | const [pure virtual] |
virtual void irr::scene::ILightSceneNode::setLightData | ( | const video::SLight & | light | ) | [pure virtual] |
Sets the light data associated with this ILightSceneNode.
light | The new light data. |
Referenced by ILightSceneNode().
virtual void irr::scene::ILightSceneNode::setLightType | ( | video::E_LIGHT_TYPE | type | ) | [pure virtual] |
virtual void irr::scene::ILightSceneNode::setRadius | ( | f32 | radius | ) | [pure virtual] |
Sets the light's radius of influence.
Outside this radius the light won't lighten geometry and cast no shadows. Setting the radius will also influence the attenuation, setting it to (0,1/radius,0). If you want to override this behavior, set the attenuation after the radius.
radius | The new radius. |
Referenced by ILightSceneNode().
virtual void irr::scene::ILightSceneNode::setVisible | ( | bool | isVisible | ) | [pure virtual] |
Sets if the node should be visible or not.
All children of this node won't be visible either, when set to true.
isVisible | If the node shall be visible. |
Reimplemented from irr::scene::ISceneNode.
Referenced by ILightSceneNode().