| Package | away3d.materials.methods |
| Class | public class EnvMapMethod |
| Inheritance | EnvMapMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| alpha : Number
The reflectiveness of the surface
| EnvMapMethod | ||
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | assetType : String [read-only] | EffectMethodBase | |
| envMap : CubeTextureBase
The cube environment map to use for the diffuse lighting. | EnvMapMethod | ||
| mask : Texture2DBase | EnvMapMethod | ||
![]() | name : String | NamedAssetBase | |
![]() | originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | |
![]() | passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | |
| Method | Defined By | ||
|---|---|---|---|
EnvMapMethod(envMap:CubeTextureBase, alpha:Number = 1) | EnvMapMethod | ||
![]() | 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 [override]
Cleans up resources used by this asset. | EnvMapMethod | ||
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| alpha | property |
alpha:NumberThe reflectiveness of the surface
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| mask | property |
mask:Texture2DBase public function get mask():Texture2DBase public function set mask(value:Texture2DBase):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 resources used by this asset.
| getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):StringParameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
| initVO | () | method |