CompositeDiffuseMethod provides a base class for diffuse methods that wrap a diffuse method to alter the calculated diffuse reflection strength.

Constructor

@:value({ baseDiffuseMethod : null, modulateMethod : null })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.

Variables

Methods

dispose():Void

@inheritDoc

Inherited Variables

Inherited Methods

Defined by BasicDiffuseMethod

copyFrom(method:ShadingMethodBase):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