LightPickerBase provides an abstract base clase for light picker classes. These classes are responsible for feeding materials with relevant lights. Usually, StaticLightPicker can be used, but LightPickerBase can be extended to provide more application-specific dynamic selection of lights.

See also:

  • StaticLightPicker

Constructor

new()

Creates a new LightPickerBase object.

Variables

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>

Methods

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.

Inherited Variables

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by NamedAssetBase

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

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