Helper Class for the LightBase objects LightsHelper
A series of methods to ease work with LightBase objects
Static methods
staticaddStaticLightToMaterials(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. The target ObjectContainer3D object to be inspected. |
|---|---|
light | LightBase. The light to add to all materials found during the parsing of the target ObjectContainer3D. |
staticaddStaticLightsToMaterials(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. The target ObjectContainer3D object to be inspected. |
|---|---|
lights | Vector.<LightBase>. A series of lights to be set to all materials found during parsing of the target ObjectContainer3D. |
staticremoveStaticLightFromMaterials(objectContainer3D:ObjectContainer3D, light:LightBase):Void
Removes a given light from all materials found into an objectcontainer and its children.
Parameters:
objectContainer3D | ObjectContainer3D. The target ObjectContainer3D object to be inspected. |
|---|---|
light | LightBase. The light to be removed from all materials found during the parsing of the target ObjectContainer3D. |