Package | away3d.materials.methods |
Class | public class RefractionEnvMapMethod |
Inheritance | RefractionEnvMapMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number | RefractionEnvMapMethod | ||
dispersionB : Number | RefractionEnvMapMethod | ||
dispersionG : Number | RefractionEnvMapMethod | ||
dispersionR : Number | RefractionEnvMapMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
refractionIndex : Number | RefractionEnvMapMethod |
Method | Defined By | ||
---|---|---|---|
RefractionEnvMapMethod(envMap:CubeTextureBase, refractionIndex:Number = .1, dispersionR:Number = 0, dispersionG:Number = 0, dispersionB:Number = 0) | RefractionEnvMapMethod | ||
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 |
alpha | property |
alpha:Number
public function get alpha():Number
public function set alpha(value:Number):void
dispersionB | property |
dispersionB:Number
public function get dispersionB():Number
public function set dispersionB(value:Number):void
dispersionG | property |
dispersionG:Number
public function get dispersionG():Number
public function set dispersionG(value:Number):void
dispersionR | property |
dispersionR:Number
public function get dispersionR():Number
public function set dispersionR(value:Number):void
refractionIndex | property |
refractionIndex:Number
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)
envMap:CubeTextureBase | |
refractionIndex:Number (default = .1 )
| |
dispersionR:Number (default = 0 )
| |
dispersionG:Number (default = 0 )
| |
dispersionB:Number (default = 0 )
|
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 |
initVO | () | method |