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


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


Can be created using method new:

Lib.Away3D.Materials.Methods.CompositeSpecularMethod.new(modulateMethod, baseSpecularMethod)

Creates a new WrapSpecularMethod object.

modulateMethod - The method which will add the code to alter the base method's strength. It needs to have the signature modSpecular(t : ShaderRegisterElement, regCache : ShaderRegisterCache : String, in which t.w will contain the specular strength and t.xyz will contain the half-vector or the reflection vector.

baseSpecularMethod - BasicSpecularMethod, The base specular method on which this method's shading is based.. Defaults nil


Has properties:

baseMethod

BasicSpecularMethod, The base specular method on which this method's shading is based.

Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents