Packagetwaver.threed
Classpublic class LightProfile
InheritanceLightProfile Inheritance Object

LightProfile is used to descibe a light which can be used in a 3D scene. A LightProfile must have tag and type properties, which will be used to identify the corresponding light in a Network3D object. Developers can manage the light through a Network3D object.

View the examples

See also

twaver.threed.network.Network3D.addLight
twaver.threed.network.Network3D.updateLight
twaver.threed.network.Network3D.removeLight
twaver.threed.network.Network3D.removeLight


Public Properties
 PropertyDefined By
  ambient : Number = 0
LightProfile
  ambientColor : uint = 0xFFFFFF
LightProfile
  brightness : Number = 0xFFFFFF
LightProfile
  color : uint = 0xFFFFFF
LightProfile
  diffuse : Number = 1
LightProfile
  direction : Vector3D
LightProfile
  fallout : Number = 1.7976931348623157E308
LightProfile
  location : Vector3D
LightProfile
  radius : Number = 1.7976931348623157E308
LightProfile
  specular : Number = 1
LightProfile
  tag : String
LightProfile
  type : String = point
LightProfile
  withShadow : Boolean = false
LightProfile
Public Constants
 ConstantDefined By
  LIGHT_TYPE_DIRECTION : String = direction
[static]
LightProfile
  LIGHT_TYPE_POINT : String = point
[static]
LightProfile
Property Detail
ambientproperty
public var ambient:Number = 0

ambientColorproperty 
public var ambientColor:uint = 0xFFFFFF

brightnessproperty 
public var brightness:Number = 0xFFFFFF

colorproperty 
public var color:uint = 0xFFFFFF

diffuseproperty 
public var diffuse:Number = 1

directionproperty 
public var direction:Vector3D

falloutproperty 
public var fallout:Number = 1.7976931348623157E308

locationproperty 
public var location:Vector3D

radiusproperty 
public var radius:Number = 1.7976931348623157E308

specularproperty 
public var specular:Number = 1

tagproperty 
public var tag:String

typeproperty 
public var type:String = point

withShadowproperty 
public var withShadow:Boolean = false

Constant Detail
LIGHT_TYPE_DIRECTIONConstant
public static const LIGHT_TYPE_DIRECTION:String = direction

LIGHT_TYPE_POINTConstant 
public static const LIGHT_TYPE_POINT:String = point

Examples