Package | away3d.tools.helpers |
Class | public class LightsHelper |
Inheritance | LightsHelper Object |
LightsHelper
A series of methods to ease work with LightBase objects
Method | Defined By | ||
---|---|---|---|
[static]
Applys a series of lights to all materials found into an objectcontainer and its children. | LightsHelper | ||
[static]
Adds one light to all materials found into an objectcontainer and its children. | LightsHelper | ||
[static]
Removes a given light from all materials found into an objectcontainer and its children. | LightsHelper |
addStaticLightsToMaterials | () | method |
public static function addStaticLightsToMaterials(objectContainer3D:ObjectContainer3D, lights:Vector.<LightBase>):void
Applys a series of lights to all materials found into an objectcontainer and its children. The lights eventually set previously are replaced by the new ones.
Parameters
objectContainer3D:ObjectContainer3D — ObjectContainer3D. The target ObjectContainer3D object to be inspected.
| |
lights:Vector.<LightBase> — Vector.<LightBase>. A series of lights to be set to all materials found during parsing of the target ObjectContainer3D.
|
addStaticLightToMaterials | () | method |
public static function addStaticLightToMaterials(objectContainer3D:ObjectContainer3D, light:LightBase):void
Adds one light to all materials found into an objectcontainer and its children. The lights eventually set previously on a material are kept unchanged. The new light is added to the lights array of the materials found during parsing.
Parameters
objectContainer3D:ObjectContainer3D — ObjectContainer3D. The target ObjectContainer3D object to be inspected.
| |
light:LightBase — LightBase. The light to add to all materials found during the parsing of the target ObjectContainer3D.
|
removeStaticLightFromMaterials | () | method |
public static function removeStaticLightFromMaterials(objectContainer3D:ObjectContainer3D, light:LightBase):void
Removes a given light from all materials found into an objectcontainer and its children.
Parameters
objectContainer3D:ObjectContainer3D — ObjectContainer3D. The target ObjectContainer3D object to be inspected.
| |
light:LightBase — LightBase. The light to be removed from all materials found during the parsing of the target ObjectContainer3D.
|