Packageaway3d.textures
Classpublic class CubeReflectionTexture
InheritanceCubeReflectionTexture Inheritance RenderCubeTexture Inheritance CubeTextureBase Inheritance TextureProxyBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

CubeReflectionTexture provides a cube map texture for real-time reflections, used for any method that uses environment maps, such as EnvMapMethod.

See also

away3d.materials.methods.EnvMapMethod


Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
TextureProxyBase
  farPlaneDistance : Number
The far plane of the camera lens.
CubeReflectionTexture
 Inheritedformat : String
[read-only]
TextureProxyBase
 InheritedhasMipMaps : Boolean
[read-only]
TextureProxyBase
 Inheritedheight : int
[read-only]
TextureProxyBase
 Inheritedname : String
NamedAssetBase
  nearPlaneDistance : Number
The near plane used by the camera lens.
CubeReflectionTexture
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  position : Vector3D
The origin where the environment map will be rendered.
CubeReflectionTexture
  renderer : RendererBase
The renderer to use.
CubeReflectionTexture
 Inheritedsize : int
RenderCubeTexture
 Inheritedwidth : int
[read-only]
TextureProxyBase
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 CubeReflectionTexture object
CubeReflectionTexture
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
dispose():void
[override] Cleans up resources used by this asset.
CubeReflectionTexture
  
getTextureForStage3D(stage3DProxy:Stage3DProxy):TextureBase
[override]
CubeReflectionTexture
 Inherited
TextureProxyBase
  
render(view:View3D):void
Renders the scene in the given view for reflections.
CubeReflectionTexture
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Protected Methods
 MethodDefined By
 Inherited
createTexture(context:Context3D):TextureBase
[override]
RenderCubeTexture
 Inherited
TextureProxyBase
 Inherited
setSize(width:int, height:int):void
TextureProxyBase
 Inherited
uploadContent(texture:TextureBase):void
[override]
RenderCubeTexture
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
farPlaneDistanceproperty
farPlaneDistance:Number

The far plane of the camera lens. Can be used to cut off objects that are too far to be of interest in reflections


Implementation
    public function get farPlaneDistance():Number
    public function set farPlaneDistance(value:Number):void
nearPlaneDistanceproperty 
nearPlaneDistance:Number

The near plane used by the camera lens.


Implementation
    public function get nearPlaneDistance():Number
    public function set nearPlaneDistance(value:Number):void
positionproperty 
position:Vector3D

The origin where the environment map will be rendered. This is usually in the centre of the reflective object.


Implementation
    public function get position():Vector3D
    public function set position(value:Vector3D):void
rendererproperty 
renderer:RendererBase

The renderer to use.


Implementation
    public function get renderer():RendererBase
    public function set renderer(value:RendererBase):void
Constructor Detail
CubeReflectionTexture()Constructor
public function CubeReflectionTexture(size:int)

Creates a new CubeReflectionTexture object

Parameters
size:int — The size of the cube texture
Method Detail
dispose()method
override public function dispose():void

Cleans up resources used by this asset.

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.