View source
class CompositeSpecularMethod
package away3d.materials.methods
extends BasicSpecularMethod › LightingMethodBase › ShadingMethodBase › NamedAssetBase
extended by CelSpecularMethod, FresnelSpecularMethod
Available on all platforms
CompositeSpecularMethod provides a base class for specular methods that wrap a specular method to alter the calculated specular reflection strength.
Constructor
new(modulateMethod:Dynamic, ?baseSpecularMethod:BasicSpecularMethod)
Creates a new WrapSpecularMethod object.
Parameters:
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 | The base specular method on which this method's shading is based. |