Packagelaya.d3.resource.models
Classpublic class SkyBox
InheritanceSkyBox Inheritance Sky Inheritance laya.resource.Resource

Sky 类用于创建天空盒。



Public Properties
 PropertyDefined By
 InheritedalphaBlending : Number
获取透明混合度。
Sky
 InheritedcolorIntensity : Number
获取颜色强度。
Sky
 InheritedenvDiffuseSHBlue : Float32Array
[write-only]
Sky
 InheritedenvDiffuseSHGreen : Float32Array
[write-only]
Sky
 InheritedenvDiffuseSHRed : Float32Array
[write-only]
Sky
 InheritedenvironmentDiffuse : BaseTexture
获取环境漫反射贴图。
Sky
 InheritedenvironmentSpecular : BaseTexture
获取环境高光贴图。
Sky
  textureCube : TextureCube
获取天空立方体纹理。
SkyBox
Public Methods
 MethodDefined By
  
创建一个 SkyBox 实例。
SkyBox
  
_render(state:RenderState):void
[override]
SkyBox
Public Constants
 ConstantDefined By
 InheritedALPHABLENDING : int = 2
[static]
Sky
 InheritedDIFFUSETEXTURE : int = 3
[static]
Sky
 InheritedINTENSITY : int = 1
[static]
Sky
 InheritedMVPMATRIX : int = 0
[static]
Sky
Property Detail
textureCubeproperty
textureCube:TextureCube

获取天空立方体纹理。


Implementation
    public function get textureCube():TextureCube
    public function set textureCube(value:TextureCube):void
Constructor Detail
SkyBox()Constructor
public function SkyBox()

创建一个 SkyBox 实例。

Method Detail
_render()method
override public function _render(state:RenderState):void

Parameters

state:RenderState