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.

Variables

Inherited Variables

Inherited Methods

Defined by BasicDiffuseMethod

copyFrom(method:ShadingMethodBase):Void

@inheritDoc

dispose():Void

@inheritDoc

generateMip(stage3DProxy:Stage3DProxy):Void

Forces the creation of the texture.

Parameters:

stage3DProxy

The Stage3DProxy used by the renderer

Defined by NamedAssetBase

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

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