Package | away3d.materials.methods |
Class | public class PlanarReflectionMethod |
Inheritance | PlanarReflectionMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
See also
Property | Defined By | ||
---|---|---|---|
alpha : Number
The reflectiveness of the surface. | PlanarReflectionMethod | ||
normalDisplacement : Number
The amount of displacement on the surface, for use with water waves. | PlanarReflectionMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
texture : PlanarReflectionTexture
The PlanarReflectionTexture used to render the reflected view. | PlanarReflectionMethod |
Method | Defined By | ||
---|---|---|---|
PlanarReflectionMethod(texture:PlanarReflectionTexture, alpha:Number = 1)
Creates a new PlanarReflectionMethod
| PlanarReflectionMethod | ||
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
The reflectiveness of the surface.
public function get alpha():Number
public function set alpha(value:Number):void
normalDisplacement | property |
normalDisplacement:Number
The amount of displacement on the surface, for use with water waves.
public function get normalDisplacement():Number
public function set normalDisplacement(value:Number):void
texture | property |
texture:PlanarReflectionTexture
The PlanarReflectionTexture used to render the reflected view.
public function get texture():PlanarReflectionTexture
public function set texture(value:PlanarReflectionTexture):void
PlanarReflectionMethod | () | Constructor |
public function PlanarReflectionMethod(texture:PlanarReflectionTexture, alpha:Number = 1)
Creates a new PlanarReflectionMethod
Parameterstexture:PlanarReflectionTexture — The PlanarReflectionTexture used to render the reflected view.
| |
alpha:Number (default = 1 ) — The reflectiveness of the surface.
|
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 |
initVO | () | method |