View source
class GradientDiffuseMethod
package away3d.materials.methods
extends BasicDiffuseMethod › LightingMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
GradientDiffuseMethod is an alternative to BasicDiffuseMethod 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)
Constructor
new(gradient:Texture2DBase)
Creates a new GradientDiffuseMethod object.
Parameters:
gradient | 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. |
|---|