LightMapMethod provides a method that allows applying a light map texture to the calculated pixel colour. It is different from LightMapDiffuseMethod in that the latter only modulates the diffuse shading value rather than the whole pixel colour.

Static variables

@:value(BlendMode.ADD)staticinlineread onlyADD:BlendMode = BlendMode.ADD

Indicates the light map should be added into the calculated shading result.

@:value(BlendMode.MULTIPLY)staticinlineread onlyMULTIPLY:BlendMode = BlendMode.MULTIPLY

Indicates the light map should be multiplied with the calculated shading result.

Constructor

@:value({ useSecondaryUV : false, blendMode : MULTIPLY })new(texture:Texture2DBase, blendMode:BlendMode = MULTIPLY, useSecondaryUV:Bool = false)

Creates a new LightMapMethod object.

Parameters:

texture

The texture containing the light map.

blendMode

The blend mode with which the light map should be applied to the lighting result.

useSecondaryUV

Indicates whether the secondary UV set should be used to map the light map.

Variables

Inherited Variables

Defined by EffectMethodBase

read onlyassetType:String

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ShadingMethodBase

copyFrom(method:ShadingMethodBase):Void

Copies the state from a ShadingMethodBase object into the current object.

dispose():Void

Cleans up any resources used by the current object.

Defined by NamedAssetBase

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

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