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


Inherited from BasicDiffuseMethod -> LightingMethodBase -> ShadingMethodBase -> NamedAssetBase -> EventDispatcher.


Can be created using method new:

Lib.Away3D.Materials.Methods.CompositeDiffuseMethod.new(modulateMethod, baseDiffuseMethod)

Creates a new WrapDiffuseMethod object.

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. Default nil.

baseDiffuseMethod - BasicDiffuseMethod, The base diffuse method on which this method's shading is based. Default nil.


Has properties:

baseMethod

BasicDiffuseMethod, The base diffuse method on which this method's shading is based.



Created with the Personal Edition of HelpNDoc: Easily create EBooks