Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

DirectionalLight Class Reference

DirectionalLight defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector. More...

Inheritance diagram for DirectionalLight:

LightNode ChildNode Node Object List of all members.

Detailed Description

DirectionalLight defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector.

Authoring Interface:

        DirectionalLight {
            field   SFVec3f direction   0 0 -1
                    // from LightNode
            field   SFBoolean   on              true
            field   SFColor3f   color           white
            field   SFColor3f   specularColor   white
        }

Parameters:
direction specifies the direction vector of the illumination emanating from the light source in the local coordinate system. Default value: 0 0 -1
on specifies whether geometry will be illuminated from this source. Default value: true
color specifies the spectral color properties of the direct light emission. Default value: white
specularColor specifies the spectral color properties of the specular illumination component. Default value: white

Functionality:

DirectionalLight defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector. Light is emitted along parallel rays from an infinite distance away. A directional light source illuminates only the children and descendants of its parent group. DirectionalLight nodes do not attenuate with distance. The accumulated transformations of the DirectionalLight object's parent nodes are applied to the direction vector to determine the world space direction vector.

For further details on the lighting model, see Lighting.
XXX verify with Ogre's lighting model, and revise to match.


Generated on Sat Apr 1 06:08:09 2006 for Emma Content Development Kit by  doxygen 1.4.3