StaticLightPicker is a light picker that provides a static set of lights. The lights can be reassigned, but if the configuration changes (number of directional lights, point lights, etc), a material recompilation may occur.

Constructor

new(lights:Array<LightBase>)

Creates a new StaticLightPicker object.

Parameters:

lights

The lights to be used for shading.

Variables

Inherited Variables

Defined by LightPickerBase

read onlyallPickedLights:Vector<LightBase>

read onlyassetType:String

read onlylightProbeWeights:Vector<Float>

read onlylightProbes:Vector<LightProbe>

read onlynumLightProbes:Int

read onlynumPointLights:Int

read onlypointLights:Vector<PointLight>

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by LightPickerBase

collectLights(renderable:IRenderable, entityCollector:EntityCollector):Void

Updates set of lights for a given renderable and EntityCollector. Always call super.collectLights() after custom overridden code.

dispose():Void

Disposes resources used by the light picker.

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void