Package | away3d.materials.methods |
Class | public class FresnelEnvMapMethod |
Inheritance | FresnelEnvMapMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number | FresnelEnvMapMethod | ||
envMap : CubeTextureBase
The cube environment map to use for the diffuse lighting. | FresnelEnvMapMethod | ||
fresnelPower : Number | FresnelEnvMapMethod | ||
mask : Texture2DBase | FresnelEnvMapMethod | ||
normalReflectance : Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction. | FresnelEnvMapMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
FresnelEnvMapMethod(envMap:CubeTextureBase, alpha:Number = 1) | FresnelEnvMapMethod | ||
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. | FresnelEnvMapMethod |
alpha | property |
alpha:Number
public function get alpha():Number
public function set alpha(value:Number):void
envMap | property |
envMap:CubeTextureBase
The cube environment map to use for the diffuse lighting.
public function get envMap():CubeTextureBase
public function set envMap(value:CubeTextureBase):void
fresnelPower | property |
fresnelPower:Number
public function get fresnelPower():Number
public function set fresnelPower(value:Number):void
mask | property |
mask:Texture2DBase
public function get mask():Texture2DBase
public function set mask(value:Texture2DBase):void
normalReflectance | property |
normalReflectance:Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction.
public function get normalReflectance():Number
public function set normalReflectance(value:Number):void
FresnelEnvMapMethod | () | Constructor |
public function FresnelEnvMapMethod(envMap:CubeTextureBase, alpha:Number = 1)
envMap:CubeTextureBase | |
alpha:Number (default = 1 )
|
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 any resources used by the current object.
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 |