LightingMethodBase provides an abstract base method for shading methods that uses lights.
Used for diffuse and specular shaders only.
arcane var _modulateMethod:Function
A method that is exposed to wrappers in case the strength needs to be controlled
public function LightingMethodBase()
arcane function getFragmentCodePerLight(vo:MethodVO, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light.
Parameters
Returns arcane function getFragmentCodePerProbe(vo:MethodVO, cubeMapReg:ShaderRegisterElement, weightRegister:String, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light probe object.
Parameters
| vo:MethodVO — The register containing the cube map for the current probe
|
|
| cubeMapReg:ShaderRegisterElement — A string representation of the register + component containing the current weight
|
|
| weightRegister:String — The register cache providing any necessary registers to the shader
|
|
| regCache:ShaderRegisterCache |
Returns
Thu Nov 15 2012, 12:08 PM Z