Package | away3d.materials.methods |
Class | public class LightingMethodBase |
Inheritance | LightingMethodBase ![]() ![]() ![]() |
Subclasses | BasicDiffuseMethod, BasicSpecularMethod |
Method | Defined By | ||
---|---|---|---|
LightingMethodBase | |||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | |
![]() | dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
_modulateMethod | property |
arcane var _modulateMethod:Function
A method that is exposed to wrappers in case the strength needs to be controlled
LightingMethodBase | () | Constructor |
public function LightingMethodBase()
getFragmentCodePerLight | () | method |
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
vo:MethodVO | |
lightDirReg:ShaderRegisterElement | |
lightColReg:ShaderRegisterElement | |
regCache:ShaderRegisterCache |
String |
getFragmentCodePerProbe | () | method |
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 |
String |