View source
class LightMapMethod
package away3d.materials.methods
extends EffectMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
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
staticinlineread onlyADD:BlendMode = BlendMode.ADD
Indicates the light map should be added into the calculated shading result.
staticinlineread onlyMULTIPLY:BlendMode = BlendMode.MULTIPLY
Indicates the light map should be multiplied with the calculated shading result.
Constructor
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. |