Packageaway3d.materials.methods
Classpublic class FresnelPlanarReflectionMethod
InheritanceFresnelPlanarReflectionMethod Inheritance EffectMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher

Allows the use of an additional texture to specify the alpha value of the material. When used with the secondary uv set, it allows for a tiled main texture with independently varying alpha (useful for water etc).



Public Properties
 PropertyDefined By
  alpha : Number
FresnelPlanarReflectionMethod
  fresnelPower : Number
FresnelPlanarReflectionMethod
  normalDisplacement : Number
FresnelPlanarReflectionMethod
  normalReflectance : Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction.
FresnelPlanarReflectionMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  texture : PlanarReflectionTexture
FresnelPlanarReflectionMethod
Protected Properties
 PropertyDefined By
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
Public Methods
 MethodDefined By
  
FresnelPlanarReflectionMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose():void
Cleans up any resources used by the current object.
ShadingMethodBase
Protected Methods
 MethodDefined By
 Inherited
getTex2DSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, uvReg:ShaderRegisterElement = null, forceWrap:String = null):String
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Property Detail
alphaproperty
alpha:Number


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
fresnelPowerproperty 
fresnelPower:Number


Implementation
    public function get fresnelPower():Number
    public function set fresnelPower(value:Number):void
normalDisplacementproperty 
normalDisplacement:Number


Implementation
    public function get normalDisplacement():Number
    public function set normalDisplacement(value:Number):void
normalReflectanceproperty 
normalReflectance:Number

The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction.


Implementation
    public function get normalReflectance():Number
    public function set normalReflectance(value:Number):void
textureproperty 
texture:PlanarReflectionTexture


Implementation
    public function get texture():PlanarReflectionTexture
    public function set texture(value:PlanarReflectionTexture):void
Constructor Detail
FresnelPlanarReflectionMethod()Constructor
public function FresnelPlanarReflectionMethod(texture:PlanarReflectionTexture, alpha:Number = 1)



Parameters
texture:PlanarReflectionTexture
 
alpha:Number (default = 1)
Method Detail
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

Returns
String
initVO()method 
override arcane function initVO(vo:MethodVO):void

Parameters

vo:MethodVO