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, lightIndex:int, 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, lightIndex:int, 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 index of the light currently processed. This is a continuation of the lightIndex parameter of the getFragmentCodePerLight method.
|
|
| lightIndex:int — 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
Tue Jul 17 2012, 10:37 AM +01:00