Package | away3d.materials.methods |
Class | public class RefractionEnvMapMethod |
Inheritance | RefractionEnvMapMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The amount of transparency of the object. | RefractionEnvMapMethod | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | EffectMethodBase | ||
dispersionB : Number
The amount of chromatic dispersion of the blue channel. | RefractionEnvMapMethod | ||
dispersionG : Number
The amount of chromatic dispersion of the green channel. | RefractionEnvMapMethod | ||
dispersionR : Number
The amount of chromatic dispersion of the red channel. | RefractionEnvMapMethod | ||
envMap : CubeTextureBase
The cube environment map to use for the refraction. | RefractionEnvMapMethod | ||
id : String | NamedAssetBase | ||
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 | ||
refractionIndex : Number
The refractive index of the material. | RefractionEnvMapMethod |
Method | Defined By | ||
---|---|---|---|
RefractionEnvMapMethod(envMap:CubeTextureBase, refractionIndex:Number = .1, dispersionR:Number = 0, dispersionG:Number = 0, dispersionB:Number = 0)
Creates a new RefractionEnvMapMethod object. | RefractionEnvMapMethod | ||
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
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
alpha | property |
alpha:Number
The amount of transparency of the object. Warning: the alpha applies to the refracted color, not the actual material. A value of 1 will make it appear fully transparent.
public function get alpha():Number
public function set alpha(value:Number):void
dispersionB | property |
dispersionB:Number
The amount of chromatic dispersion of the blue channel. Defaults to 0 (none).
public function get dispersionB():Number
public function set dispersionB(value:Number):void
dispersionG | property |
dispersionG:Number
The amount of chromatic dispersion of the green channel. Defaults to 0 (none).
public function get dispersionG():Number
public function set dispersionG(value:Number):void
dispersionR | property |
dispersionR:Number
The amount of chromatic dispersion of the red channel. Defaults to 0 (none).
public function get dispersionR():Number
public function set dispersionR(value:Number):void
envMap | property |
envMap:CubeTextureBase
The cube environment map to use for the refraction.
public function get envMap():CubeTextureBase
public function set envMap(value:CubeTextureBase):void
refractionIndex | property |
refractionIndex:Number
The refractive index of the material.
public function get refractionIndex():Number
public function set refractionIndex(value:Number):void
RefractionEnvMapMethod | () | Constructor |
public function RefractionEnvMapMethod(envMap:CubeTextureBase, refractionIndex:Number = .1, dispersionR:Number = 0, dispersionG:Number = 0, dispersionB:Number = 0)
Creates a new RefractionEnvMapMethod object. Example values for dispersion are: dispersionR: -0.03, dispersionG: -0.01, dispersionB: = .0015
ParametersenvMap:CubeTextureBase — The environment map containing the refracted scene.
| |
refractionIndex:Number (default = .1 ) — The refractive index of the material.
| |
dispersionR:Number (default = 0 ) — The amount of chromatic dispersion of the red channel. Defaults to 0 (none).
| |
dispersionG:Number (default = 0 ) — The amount of chromatic dispersion of the green channel. Defaults to 0 (none).
| |
dispersionB:Number (default = 0 ) — The amount of chromatic dispersion of the blue channel. Defaults to 0 (none).
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initConstants | () | method |
override arcane function initConstants(vo:MethodVO):void
Initializes unchanging shader constants using the data from a MethodVO.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|
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.
|