| Package | away3d.materials.methods |
| Class | public class EnvMapMethod |
| Inheritance | EnvMapMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| alpha : Number | EnvMapMethod | ||
| envMap : CubeTextureBase
The cube environment map to use for the diffuse lighting. | EnvMapMethod | ||
![]() | passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | |
![]() | viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase | |
| Method | Defined By | ||
|---|---|---|---|
EnvMapMethod(envMap:CubeTextureBase, alpha:Number = 1) | EnvMapMethod | ||
![]() | copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | |
dispose():void [override]
Cleans up any resources used by the current object. | EnvMapMethod | ||
| alpha | property |
alpha:Number public function get alpha():Number public function set alpha(value:Number):void| envMap | property |
envMap:CubeTextureBaseThe cube environment map to use for the diffuse lighting.
public function get envMap():CubeTextureBase public function set envMap(value:CubeTextureBase):void| EnvMapMethod | () | Constructor |
public function EnvMapMethod(envMap:CubeTextureBase, alpha:Number = 1)envMap:CubeTextureBase | |
alpha:Number (default = 1) |
| activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):voidParameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
| dispose | () | method |
override public function dispose():voidCleans up any resources used by the current object.
| getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):StringParameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
| initVO | () | method |