View source
class CompositeDiffuseMethod
package away3d.materials.methods
extends BasicDiffuseMethod › LightingMethodBase › ShadingMethodBase › NamedAssetBase
extended by CelDiffuseMethod, LightMapDiffuseMethod, SubsurfaceScatteringDiffuseMethod
Available on all platforms
CompositeDiffuseMethod provides a base class for diffuse methods that wrap a diffuse method to alter the calculated diffuse reflection strength.
Constructor
new(?modulateMethod:Dynamic, ?baseDiffuseMethod:BasicDiffuseMethod)
Creates a new WrapDiffuseMethod object.
Parameters:
modulateMethod | The method which will add the code to alter the base method's strength. It needs to have the signature clampDiffuse(t : ShaderRegisterElement, regCache : ShaderRegisterCache) : String, in which t.w will contain the diffuse strength. |
|---|---|
baseDiffuseMethod | The base diffuse method on which this method's shading is based. |