A SkyBox object is used to render a sky in the scene. It's always considered static and 'at infinity', and as such it's always centered at the camera's position and sized to exactly fit within the camera's frustum, ensuring the sky box is always as large as possible without being clipped.


Inherited from Entity -> ObjectContainer3D -> Object3D -> NamedAssetBase -> EventDispatcher.


Can be created using method new:

Lib.Away3D.Primitives.SkyBox.new(cubeMap)

Create a new SkyBox object.

cubeMap - The CubeMap to use for the sky box's texture. (CubeTextureBase)


Created SkyBox object has properties:

animator

[read-only] IAnimator can be one of ParticleAnimator, SkeletonAnimator, SpriteSheetAnimator, UVAnimator, VertexAnimator

assetType

[override] [read-only] String

castsShadows

[read-only] Boolean

indexData

[read-only] vector array of Int

material

[read-only] The material with which to render the object. (MaterialBase)

numTriangles

[read-only] The amount of triangles that comprise the SkyBox geometry.

sourceEntity

[read-only] The entity that that initially provided the IRenderable to the render pipeline. (Entity)

UVData

[read-only] Vector array of numbers

uvTransform

[read-only] (Matrix)

vertexData

[read-only] Vector array of numbers

vertexNormalData

[read-only] Vector array of numbers

vertexNormalOffset

[read-only] int

vertexOffset

[read-only] int

vertexStride

[read-only] int

vertexTangentData

[read-only] Vector array of numbers

vertexTangentOffset

[read-only] int


methods:

activateSecondaryUVBuffer(index, stage3DProxy)


index - int. The attribute stream index for the vertex shader

stage3DProxy - (Stage3DProxy) The Stage3DProxy to assign the stream to

activateUVBuffer(index, stage3DProxy)

Assigns the attribute stream for UV coordinates

index - int. The attribute stream index for the vertex shader

stage3DProxy - (Stage3DProxy) The Stage3DProxy to assign the stream to

activateVertexBuffer(index, stage3DProxy)

Assigns the attribute stream for vertex positions.

index - int. The attribute stream index for the vertex shader

stage3DProxy - (Stage3DProxy) The Stage3DProxy to assign the stream to

activateVertexNormalBuffer(index, stage3DProxy)

Assigns the attribute stream for vertex normals

index - int. The attribute stream index for the vertex shader

stage3DProxy - (Stage3DProxy) The Stage3DProxy to assign the stream to

activateVertexTangentBuffer(index, stage3DProxy)

Assigns the attribute stream for vertex tangents

index - int. The attribute stream index for the vertex shader

stage3DProxy - (Stage3DProxy) The Stage3DProxy to assign the stream to

getIndexBuffer(stage3DProxy)

Retrieves the IndexBuffer3D object that contains triangle indices.

stage3DProxy - (Stage3DProxy) The Context3D for which we request the buffer

getRenderSceneTransform(camera)

Returnes (Matrix3D)

camera - (Camera3D)


Created with the Personal Edition of HelpNDoc: Full-featured Help generator