| Package | away3d.materials.methods |
| Class | public class PlanarReflectionMethod |
| Inheritance | PlanarReflectionMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
See also
| Property | Defined By | ||
|---|---|---|---|
| alpha : Number
The reflectiveness of the surface. | PlanarReflectionMethod | ||
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | assetType : String [read-only] | EffectMethodBase | |
![]() | name : String | NamedAssetBase | |
| normalDisplacement : Number
The amount of displacement on the surface, for use with water waves. | PlanarReflectionMethod | ||
![]() | 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 | |
| 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 | ||
![]() | 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:NumberThe reflectiveness of the surface.
public function get alpha():Number public function set alpha(value:Number):void| normalDisplacement | property |
normalDisplacement:NumberThe 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:PlanarReflectionTextureThe 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):voidParameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
| getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):StringParameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
| initVO | () | method |