Creates a new DiffuseLightMapMethod method.
The texture containing the light map.
The blend mode with which the light map should be applied to the lighting result.
Indicates whether the secondary UV set should be used to map the light map.
The diffuse method used to calculate the regular diffuse-based lighting.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
Indicates the light map should be added into the calculated shading result. This can be used to add pre-calculated lighting or global illumination.
Indicates the light map should be multiplied with the calculated shading result. This can be used to add pre-calculated shadows or occlusion.
The base diffuse method on which this method's shading is based.
The base diffuse method on which this method's shading is based.
The blend mode with which the light map should be applied to the lighting result.
The blend mode with which the light map should be applied to the lighting result.
The texture containing the light map data.
The texture containing the light map data.
Indicates whether the secondary UV set should be used to map the light map.
Indicates whether the secondary UV set should be used to map the light map.
Add an event listener
Copies the state from a ShadingMethodBase object into the current object.
Dispatch an event
check if an object has an event listener assigned to it
Marks the shader program as invalid, so it will be recompiled before the next render.
Remove an event listener
Generated using TypeDoc
DiffuseLightMapMethod provides a diffuse shading method that uses a light map to modulate the calculated diffuse lighting. It is different from EffectLightMapMethod in that the latter modulates the entire calculated pixel color, rather than only the diffuse lighting value.