Packageaway3d.textures
Classpublic class PlanarReflectionTexture
InheritancePlanarReflectionTexture Inheritance RenderTexture Inheritance Texture2DBase Inheritance TextureProxyBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

PlanarReflectionTexture is a Texture that can be used for material-based planar reflections, as provided by PlanarReflectionMethod, FresnelPlanarReflectionMethod.

See also

away3d.materials.methods.PlanarReflectionMethod


Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
TextureProxyBase
 Inheritedformat : String
[read-only]
TextureProxyBase
 InheritedhasMipMaps : Boolean
[read-only]
TextureProxyBase
 Inheritedheight : int
RenderTexture
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  plane : Plane3D
The plane to reflect with.
PlanarReflectionTexture
  renderer : RendererBase
The renderer to use.
PlanarReflectionTexture
  scale : Number
A scale factor to reduce the quality of the reflection.
PlanarReflectionTexture
 Inheritedwidth : int
RenderTexture
Protected Properties
 PropertyDefined By
 Inherited_dirty : Vector.<Context3D>
TextureProxyBase
 Inherited_format : String = bgra
TextureProxyBase
 Inherited_hasMipmaps : Boolean = true
TextureProxyBase
 Inherited_height : int
TextureProxyBase
 Inherited_textures : Vector.<TextureBase>
TextureProxyBase
 Inherited_width : int
TextureProxyBase
Public Methods
 MethodDefined By
  
Creates a new PlanarReflectionTexture object.
PlanarReflectionTexture
  
applyTransform(matrix:Matrix3D):void
Sets the plane to match a given matrix.
PlanarReflectionTexture
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
dispose():void
[override]
PlanarReflectionTexture
  
getTextureForStage3D(stage3DProxy:Stage3DProxy):TextureBase
[override]
PlanarReflectionTexture
 Inherited
TextureProxyBase
  
render(view:View3D):void
Renders the scene in the given view for reflections.
PlanarReflectionTexture
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Protected Methods
 MethodDefined By
 Inherited
createTexture(context:Context3D):TextureBase
[override]
RenderTexture
 Inherited
TextureProxyBase
 Inherited
setSize(width:int, height:int):void
TextureProxyBase
  
uploadContent(texture:TextureBase):void
[override]
PlanarReflectionTexture
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
planeproperty
plane:Plane3D

The plane to reflect with.


Implementation
    public function get plane():Plane3D
    public function set plane(value:Plane3D):void
rendererproperty 
renderer:RendererBase

The renderer to use.


Implementation
    public function get renderer():RendererBase
    public function set renderer(value:RendererBase):void
scaleproperty 
scale:Number

A scale factor to reduce the quality of the reflection. Default value is 1 (same quality as the View)


Implementation
    public function get scale():Number
    public function set scale(value:Number):void
textureRatioXproperty 
textureRatioX:Number  [read-only]


Implementation
    arcane function get textureRatioX():Number
textureRatioYproperty 
textureRatioY:Number  [read-only]


Implementation
    arcane function get textureRatioY():Number
Constructor Detail
PlanarReflectionTexture()Constructor
public function PlanarReflectionTexture()

Creates a new PlanarReflectionTexture object.

Method Detail
applyTransform()method
public function applyTransform(matrix:Matrix3D):void

Sets the plane to match a given matrix. This is used to easily match a Mesh using a PlaneGeometry and yUp = false.

Parameters

matrix:Matrix3D — The transformation matrix to rotate the plane with.

dispose()method 
override public function dispose():void

getTextureForStage3D()method 
override public function getTextureForStage3D(stage3DProxy:Stage3DProxy):TextureBase

Parameters

stage3DProxy:Stage3DProxy

Returns
TextureBase
render()method 
public function render(view:View3D):void

Renders the scene in the given view for reflections.

Parameters

view:View3D — The view containing the Scene to render.

uploadContent()method 
override protected function uploadContent(texture:TextureBase):void

Parameters

texture:TextureBase