Package | away3d.textures |
Class | public class PlanarReflectionTexture |
Inheritance | PlanarReflectionTexture RenderTexture Texture2DBase TextureProxyBase NamedAssetBase flash.events.EventDispatcher |
See also
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only] | TextureProxyBase | ||
format : String [read-only] | TextureProxyBase | ||
hasMipMaps : Boolean [read-only] | TextureProxyBase | ||
height : int | RenderTexture | ||
name : String | NamedAssetBase | ||
originalName : 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 | ||
width : int | RenderTexture |
Method | Defined By | ||
---|---|---|---|
Creates a new PlanarReflectionTexture object. | PlanarReflectionTexture | ||
applyTransform(matrix:Matrix3D):void
Sets the plane to match a given matrix. | PlanarReflectionTexture | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
dispose():void [override] | PlanarReflectionTexture | ||
getTextureForStage3D(stage3DProxy:Stage3DProxy):TextureBase [override]
| PlanarReflectionTexture | ||
invalidateContent():void | TextureProxyBase | ||
Renders the scene in the given view for reflections. | PlanarReflectionTexture | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
Method | Defined By | ||
---|---|---|---|
createTexture(context:Context3D):TextureBase [override] | RenderTexture | ||
invalidateSize():void | TextureProxyBase | ||
setSize(width:int, height:int):void | TextureProxyBase | ||
uploadContent(texture:TextureBase):void [override]
| PlanarReflectionTexture |
plane | property |
plane:Plane3D
The plane to reflect with.
public function get plane():Plane3D
public function set plane(value:Plane3D):void
renderer | property |
renderer:RendererBase
The renderer to use.
public function get renderer():RendererBase
public function set renderer(value:RendererBase):void
scale | property |
scale:Number
A scale factor to reduce the quality of the reflection. Default value is 1 (same quality as the View)
public function get scale():Number
public function set scale(value:Number):void
textureRatioX | property |
textureRatioX:Number
[read-only] arcane function get textureRatioX():Number
textureRatioY | property |
textureRatioY:Number
[read-only] arcane function get textureRatioY():Number
PlanarReflectionTexture | () | Constructor |
public function PlanarReflectionTexture()
Creates a new PlanarReflectionTexture object.
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 |
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 |