Package | laya.d3.resource.models |
Class | public class SkyDome |
Inheritance | SkyDome Sky laya.resource.Resource |
Sky
类用于创建天空盒。
Property | Defined By | ||
---|---|---|---|
alphaBlending : Number
获取透明混合度。
| Sky | ||
colorIntensity : Number
获取颜色强度。
| Sky | ||
envDiffuseSHBlue : Float32Array [write-only] | Sky | ||
envDiffuseSHGreen : Float32Array [write-only] | Sky | ||
envDiffuseSHRed : Float32Array [write-only] | Sky | ||
environmentDiffuse : BaseTexture
获取环境漫反射贴图。
| Sky | ||
environmentSpecular : BaseTexture
获取环境高光贴图。
| Sky | ||
texture : Texture2D
获取天空立方体纹理。
| SkyDome |
Method | Defined By | ||
---|---|---|---|
SkyDome()
创建一个 SkyBox 实例。
| SkyDome | ||
_render(state:RenderState):void [override] | SkyDome | ||
loadEnvInfo(envInfo:String):void | SkyDome | ||
onEnvDescLoaded(envInfoFile:String):void | SkyDome |
texture | property |
texture:Texture2D
获取天空立方体纹理。
public function get texture():Texture2D
public function set texture(value:Texture2D):void
SkyDome | () | Constructor |
public function SkyDome()
创建一个 SkyBox
实例。
_render | () | method |
loadEnvInfo | () | method |
public function loadEnvInfo(envInfo:String):void
Parameters
envInfo:String |
onEnvDescLoaded | () | method |
public function onEnvDescLoaded(envInfoFile:String):void
Parameters
envInfoFile:String |