Creates a new DiffuseGradientMethod object.
A texture that contains the light colour based on the angle. This can be used to change the light colour due to subsurface scattering when the surface faces away from the light.
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.
The color of the diffuse reflection when not using a texture.
The color of the diffuse reflection when not using a texture.
A texture that contains the light colour based on the angle. This can be used to change the light colour due to subsurface scattering when the surface faces away from the light.
A texture that contains the light colour based on the angle. This can be used to change the light colour due to subsurface scattering when the surface faces away from the light.
Set internally if diffuse color component multiplies or replaces the ambient color
Set internally if diffuse color component multiplies or replaces the ambient color
The texture to use to define the diffuse reflection color per texel.
The texture to use to define the diffuse reflection color per texel.
Add an event listener
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
DiffuseGradientMethod is an alternative to DiffuseBasicMethod in which the shading can be modulated with a gradient to introduce color-tinted shading as opposed to the single-channel diffuse strength. This can be used as a crude approximation to subsurface scattering (for instance, the mid-range shading for skin can be tinted red to similate scattered light within the skin attributing to the final colour)