Packagelaya.d3.resource.models
Classpublic class SkyDome
InheritanceSkyDome 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
  texture : Texture2D
获取天空立方体纹理。
SkyDome
Public Methods
 MethodDefined By
  
创建一个 SkyBox 实例。
SkyDome
  
_render(state:RenderState):void
[override]
SkyDome
  
loadEnvInfo(envInfo:String):void
SkyDome
  
onEnvDescLoaded(envInfoFile:String):void
SkyDome
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
textureproperty
texture:Texture2D

获取天空立方体纹理。


Implementation
    public function get texture():Texture2D
    public function set texture(value:Texture2D):void
Constructor Detail
SkyDome()Constructor
public function SkyDome()

创建一个 SkyBox 实例。

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

Parameters

state:RenderState

loadEnvInfo()method 
public function loadEnvInfo(envInfo:String):void

Parameters

envInfo:String

onEnvDescLoaded()method 
public function onEnvDescLoaded(envInfoFile:String):void

Parameters

envInfoFile:String