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

Constructor

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

Variables

Methods

dispose():Void

@inheritDoc

Inherited Variables

Defined by BasicSpecularMethod

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by BasicSpecularMethod

copyFrom(method:ShadingMethodBase):Void

@inheritDoc

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void