Package | away3d.materials.methods |
Class | public class EnvMapMethod |
Inheritance | EnvMapMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The reflectivity of the surface. | EnvMapMethod | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | EffectMethodBase | ||
envMap : CubeTextureBase
The cubic environment map containing the reflected scene. | EnvMapMethod | ||
id : String | NamedAssetBase | ||
mask : Texture2DBase
An optional texture to modulate the reflectivity of the surface. | 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)
Creates an EnvMapMethod object. | 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:Number
The reflectivity of the surface.
public function get alpha():Number
public function set alpha(value:Number):void
envMap | property |
envMap:CubeTextureBase
The cubic environment map containing the reflected scene.
public function get envMap():CubeTextureBase
public function set envMap(value:CubeTextureBase):void
mask | property |
mask:Texture2DBase
An optional texture to modulate the reflectivity of the surface.
public function get mask():Texture2DBase
public function set mask(value:Texture2DBase):void
EnvMapMethod | () | Constructor |
public function EnvMapMethod(envMap:CubeTextureBase, alpha:Number = 1)
Creates an EnvMapMethod object.
ParametersenvMap:CubeTextureBase — The environment map containing the reflected scene.
| |
alpha:Number (default = 1 ) — The reflectivity of the surface.
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
dispose | () | method |
override public function dispose():void
Cleans up resources used by this asset.
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|