Packageaway3d.materials.passes
Classpublic class SkyBoxPass
InheritanceSkyBoxPass Inheritance MaterialPassBase Inheritance flash.events.EventDispatcher

SkyBoxPass provides a material pass exclusively used to render sky boxes from a cube texture.



Public Properties
 PropertyDefined By
 InheritedalphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have already been premultiplied.
MaterialPassBase
 InheritedanimationRegisterCache : AnimationRegisterCache
MaterialPassBase
 InheritedanimationSet : IAnimationSet
Returns the animation data set adding animations to the material.
MaterialPassBase
 InheritedbothSides : Boolean
Defines whether or not the material should perform backface culling.
MaterialPassBase
  cubeTexture : CubeTextureBase
The cube texture to use as the skybox.
SkyBoxPass
 InheriteddepthCompareMode : String
The depth compare mode used to render the renderables using this material.
MaterialPassBase
 Inheritedmaterial : MaterialBase
The material to which this pass belongs.
MaterialPassBase
 Inheritedmipmap : Boolean
Defines whether any used textures should use mipmapping.
MaterialPassBase
 InheritedneedFragmentAnimation : Boolean
[read-only]
MaterialPassBase
 InheritedneedUVAnimation : Boolean
[read-only] Indicates whether the pass requires any UV animatin code.
MaterialPassBase
 InheritednumUsedFragmentConstants : uint
[read-only] The amount of used fragment constants in the fragment code.
MaterialPassBase
 InheritednumUsedStreams : uint
[read-only] The amount of used vertex streams in the vertex code.
MaterialPassBase
 InheritednumUsedVaryings : uint
[read-only]
MaterialPassBase
 InheritednumUsedVertexConstants : uint
[read-only] The amount of used vertex constants in the vertex code.
MaterialPassBase
 InheritedrenderToTexture : Boolean
[read-only] Specifies whether this pass renders to texture
MaterialPassBase
 Inheritedrepeat : Boolean
Defines whether textures should be tiled.
MaterialPassBase
 Inheritedsmooth : Boolean
Defines whether smoothing should be applied to any used textures.
MaterialPassBase
 InheritedwriteDepth : Boolean
Indicate whether this pass should write to the depth buffer or not.
MaterialPassBase
Protected Properties
 PropertyDefined By
 Inherited_alphaPremultiplied : Boolean
MaterialPassBase
 Inherited_animatableAttributes : Vector.<String>
MaterialPassBase
 Inherited_animationSet : IAnimationSet
MaterialPassBase
 Inherited_animationTargetRegisters : Vector.<String>
MaterialPassBase
 Inherited_blendFactorDest : String = zero
MaterialPassBase
 Inherited_blendFactorSource : String = one
MaterialPassBase
 Inherited_defaultCulling : String = back
MaterialPassBase
 Inherited_depthCompareMode : String = lessEqual
MaterialPassBase
 Inherited_enableBlending : Boolean
MaterialPassBase
 Inherited_lightPicker : LightPickerBase
MaterialPassBase
 Inherited_material : MaterialBase
MaterialPassBase
 Inherited_mipmap : Boolean = true
MaterialPassBase
 Inherited_needFragmentAnimation : Boolean
MaterialPassBase
 Inherited_needUVAnimation : Boolean
MaterialPassBase
 Inherited_numUsedFragmentConstants : uint
MaterialPassBase
 Inherited_numUsedStreams : uint
MaterialPassBase
 Inherited_numUsedTextures : uint
MaterialPassBase
 Inherited_numUsedVaryings : uint
MaterialPassBase
 Inherited_numUsedVertexConstants : uint
MaterialPassBase
 Inherited_repeat : Boolean = false
MaterialPassBase
 Inherited_shadedTarget : String = ft0
MaterialPassBase
 Inherited_smooth : Boolean = true
MaterialPassBase
 Inherited_UVSource : String
MaterialPassBase
 Inherited_UVTarget : String
MaterialPassBase
 Inherited_writeDepth : Boolean = true
MaterialPassBase
Public Methods
 MethodDefined By
  
Creates a new SkyBoxPass object.
SkyBoxPass
 Inherited
dispose():void
Cleans up any resources used by the current object.
MaterialPassBase
 Inherited
setBlendMode(value:String):void
The blend mode to use when drawing this renderable.
MaterialPassBase
Protected Methods
 MethodDefined By
 Inherited
Implemented by subclasses if the pass uses lights to update the shader.
MaterialPassBase
Property Detail
cubeTextureproperty
cubeTexture:CubeTextureBase

The cube texture to use as the skybox.


Implementation
    public function get cubeTexture():CubeTextureBase
    public function set cubeTexture(value:CubeTextureBase):void
Constructor Detail
SkyBoxPass()Constructor
public function SkyBoxPass()

Creates a new SkyBoxPass object.

Method Detail
activate()method
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D):void

Parameters

stage3DProxy:Stage3DProxy
 
camera:Camera3D

getFragmentCode()method 
override arcane function getFragmentCode(animationCode:String):String

Returns the fragment AGAL code for the material.

Parameters

animationCode:String

Returns
String
getVertexCode()method 
override arcane function getVertexCode():String

Returns the vertex AGAL code for the material.

Returns
String
render()method 
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, viewProjection:Matrix3D):void

Parameters

renderable:IRenderable
 
stage3DProxy:Stage3DProxy
 
camera:Camera3D
 
viewProjection:Matrix3D