Package | away3d.materials.methods |
Class | public class EnvMapDiffuseMethod |
Inheritance | EnvMapDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
alphaThreshold : Number | BasicDiffuseMethod | ||
bitmapData : BitmapData
The bitmapData to use to define the diffuse reflection color per texel.
| BasicDiffuseMethod | ||
diffuseAlpha : Number
The alpha component of the diffuse reflection.
| BasicDiffuseMethod | ||
diffuseColor : uint
The color of the diffuse reflection when not using a texture.
| BasicDiffuseMethod | ||
envMap : CubeMap
The cube environment map to use for the diffuse lighting.
| EnvMapDiffuseMethod | ||
passes : Vector
Any passes required that render to a texture used by this method.
| ShadingMethodBase | ||
shadowRegister : ShaderRegisterElement | BasicDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined by | ||
---|---|---|---|
Creates a new EnvMapDiffuseMethod object.
| EnvMapDiffuseMethod | ||
Copies the state from a BasicDiffuseMethod object into the current object.
| BasicDiffuseMethod | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| EnvMapDiffuseMethod | ||
invalidateBitmapData():void
Marks the texture for update next on the next render.
| BasicDiffuseMethod |
envMap | property |
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 | property |
numLights:int
[read-write]Implementation
arcane function get numLights():int
arcane function set numLights(value:int):void
EnvMapDiffuseMethod | () | constructor |
public function EnvMapDiffuseMethod(envMap:CubeMap)
Parameters
envMap:CubeMap — The cube environment map to use for the diffuse lighting.
|
activate | () | method |
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameterscontext:Context3D — The Context3D currently used for rendering.
|
|
contextIndex:uint |
deactivate | () | method |
arcane override function deactivate(context:Context3D):void
Parameters
context:Context3D |
dispose | () | method |
public override function dispose(deep:Boolean):void
Cleans up any resources used by the current object.
Parametersdeep:Boolean — Indicates whether other resources should be cleaned up, that could potentially be shared across different instances.
|
getFragmentAGALPreLightingCode | () | method |
arcane override function getFragmentAGALPreLightingCode(regCache:ShaderRegisterCache):String
Get the fragment shader code that will be needed before any per-light code is added.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
String |
getFragmentCodePerLight | () | method |
arcane override function getFragmentCodePerLight(lightIndex:int, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light.
ParameterslightIndex:int — The register cache used during the compilation.
|
|
lightDirReg:ShaderRegisterElement |
|
lightColReg:ShaderRegisterElement |
|
regCache:ShaderRegisterCache |
String |
getFragmentPostLightingCode | () | method |
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.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
|
targetReg:ShaderRegisterElement |
String |