The Light node class. More...

#include "murl_graph_light.h"

Inheritance diagram for Murl::Graph::Light:

Additional Inherited Members

- Public Types inherited from Murl::IFactoryObject< INode >
using ClassInfoArray = Array< const ClassInfo * >
 Definition of an array of ClassInfo objects.
 
- Public Member Functions inherited from Murl::IFactoryObject< INode >
 ~IFactoryObject () override
 The destructor.
 
virtual const ClassInfo * GetObjectClassInfo () const=0
 Get the object instance's class info, if present. More...
 
virtual void ResetObjectProperties ()=0
 Reset the object instance's properties to their default values.
 
- Static Public Member Functions inherited from Murl::IFactoryObject< INode >
static const PropertyInfoGetPropertyInfo ()
 Get the class' property info struct. More...
 
static const AttributeInfoGetAttributeInfo ()
 Get the class' attribute info struct. More...
 
static void ResetProperties (IFactoryObject< INode > *object)
 Reset an object instance's properties to their default values. More...
 

Detailed Description

The Light node class.

XML Elements

XML Graph Node Tag:

<Light>

XML Graph Node Attributes:

type="POINT" [IEnums::LightType]

The type of light (directional point light or spot light). See Murl::Graph::ILight::SetType().

shape="CIRCLE" [IEnums::LightShape]

The light shape. See Murl::Graph::ILight::SetShape().

intensity="1.0" [Real]

The light intensity. See Murl::Graph::ILight::SetIntensity().

ambientColor="1f,1f,1f,1f" [Color]

The ambient light color. See Murl::Graph::IColored::SetColor() with component Murl::IEnums::LIGHTING_COMPONENT_AMBIENT.

diffuseColor="1f,1f,1f,1f" [Color]

The diffuse light color. See Murl::Graph::IColored::SetColor() with component Murl::IEnums::LIGHTING_COMPONENT_DIFFUSE.

specularColor="1f,1f,1f,1f" [Color]

The specular light color. See Murl::Graph::IColored::SetColor() with component Murl::IEnums::LIGHTING_COMPONENT_SPECULAR.

constantAttenuation="1.0" [Real]

The constant light attenuation value. See Murl::Graph::ILight::SetConstantAttenuation().

linearAttenuation="0.0" [Real]

The linear light attenuation value. See Murl::Graph::ILight::SetLinearAttenuation().

quadraticAttenuation="0.0" [Real]

The quadratic light attenuation value. See Murl::Graph::ILight::SetQuadraticAttenuation().

spotExponent="0.0" [Real]

The light's spot exponent. See Murl::Graph::ILight::GetSpotExponent().

spotCutoffAngle="90.0" [Real]

The light's spot cutoff angle See Murl::Graph::ILight::GetSpotCutoffAngle().

aspectRatio="1.0" [Real]

The light volume's aspect ratio. See Murl::Graph::ILight::SetAspectRatio().

fieldOfViewX="0.0" [Real]

The light volume's field of view in X direction. See Murl::Graph::ILight::SetFieldOfViewX().

fieldOfViewY="0.0" [Real]

The light volume's field of view in Y direction. See Murl::Graph::ILight::SetFieldOfViewY().

minDistance="1.0" [Real]

The light's minimum influence distance. See Murl::Graph::ILight::SetMinDistance().

maxDistance="inf" [Real]

The light's maximum influence radius. See Murl::Graph::ILight::SetMaxDistance().

textureId="" [String]

An optional ID to a Murl::Graph::ITexture used for projective light rendering. See Murl::Graph::ILight::GetTextureNodeTarget().

unit="0" [UInt32]

The unit index to which the light gets temporarily assigned during traversal of its children, in the range from 0 to Murl::IEnums::NUM_LIGHT_UNITS-1. See Murl::Graph::IStateUnit::SetUnit().

XML Animation Resource Tags:

<AmbientColorKey interpolation="LINEAR"> [ColorKey]

The animation key acting on Murl::Graph::IColored::SetColor() with component Murl::IEnums::LIGHTING_COMPONENT_AMBIENT.

<DiffuseColorKey interpolation="LINEAR"> [ColorKey]

The animation key acting on Murl::Graph::IColored::SetColor() with component Murl::IEnums::LIGHTING_COMPONENT_DIFFUSE.

<SpecularColorKey interpolation="LINEAR"> [ColorKey]

The animation key acting on Murl::Graph::IColored::SetColor() with component Murl::IEnums::LIGHTING_COMPONENT_SPECULAR.


The documentation for this class was generated from the following file:
  • murl_graph_light.h


Copyright © 2011-2024 Spraylight GmbH.