Lightsource that colors all shaded materials evenly from any angle
color:uint
[read-write]
Defines the color of the light object.
Implementation
public function get color():uint
public function set color(value:uint):void
debug:Boolean
[read-write]
Toggles debug mode: light object is visualised in the scene.
Implementation
public function get debug():Boolean
public function set debug(value:Boolean):void
protected var ini:Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
parent:ObjectContainer3D
[read-write]
Defines the parent of the light.
Implementation
public function get parent():ObjectContainer3D
public function set parent(value:ObjectContainer3D):void
public function AbstractLight(init:Object = null)
Parameters
| init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
Init Parameters
| color:Color (default = 0xFFFFFF) |
| debug:Boolean (default = false) |
public function clone(light:AbstractLight = null):AbstractLight
Duplicates the light object's properties to another AbstractLight
object
Parameters
| light:AbstractLight (default = null ) — [optional] The new light instance into which all properties are copied
|
Returns
| AbstractLight —
The new light instance with duplicated properties applied
|
public function light(consumer:ILightConsumer):void
Called from the PrimitiveTraverser
when passing LightPrimitive
objects to the light consumer object
Parameters