EnvMapDiffuseMethod provides a diffuse shading method that uses a diffuse irradiance environment map to
approximate global lighting rather than lights.
envMap:CubeMap
[read-write]
The cube environment map to use for the diffuse lighting.
Implementation
public function get envMap():CubeMap
public function set envMap(value:CubeMap):void
numLights:int
[read-write]
Implementation
arcane function get numLights():int
arcane function set numLights(value:int):void
public function EnvMapAmbientMethod(envMap:CubeMap)
Parameters
| envMap:CubeMap — The cube environment map to use for the diffuse lighting.
|
Init Parameters
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameters
| context:Context3D — The Context3D currently used for rendering.
|
|
| contextIndex:uint |
arcane override function deactivate(context:Context3D):void
Parameters
public override function dispose(deep:Boolean):void
Cleans up any resources used by the current object.
Parameters
| deep:Boolean — Indicates whether other resources should be cleaned up, that could potentially be shared across different instances.
|
arcane override function getFragmentPostLightingCode(regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Get the fragment shader code that should be added after all per-light code. Usually composits everything to the target register.
Parameters
Returns