Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.2
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.1
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
scenegraph
SkyboxInfo
Class SkyboxInfo
天空盒相关信息
Hierarchy
SkyboxInfo
Index
Properties
_enabled
_envmap
_isRGBE
_resource
_useIBL
Accessors
enabled
envmap
isRGBE
useIBL
Methods
activate
Properties
Protected
_enabled
_enabled
:
boolean
= false
Protected
_envmap
_envmap
:
TextureCube
|
null
= null
Protected
_isRGBE
_isRGBE
:
boolean
= false
Protected
_resource
_resource
:
Skybox
|
null
= null
Protected
_useIBL
_useIBL
:
boolean
= false
Accessors
enabled
get
enabled
(
)
:
boolean
set
enabled
(
val
:
boolean
)
:
void
是否启用天空盒?
Returns
boolean
是否启用天空盒?
Parameters
val:
boolean
Returns
void
envmap
get
envmap
(
)
:
null
|
TextureCube
set
envmap
(
val
:
null
|
TextureCube
)
:
void
使用的立方体贴图
Returns
null
|
TextureCube
使用的立方体贴图
Parameters
val:
null
|
TextureCube
Returns
void
isRGBE
get
isRGBE
(
)
:
boolean
set
isRGBE
(
val
:
boolean
)
:
void
是否需要开启 shader 内的 RGBE 数据支持?
Returns
boolean
是否需要开启 shader 内的 RGBE 数据支持?
Parameters
val:
boolean
Returns
void
useIBL
get
useIBL
(
)
:
boolean
set
useIBL
(
val
:
boolean
)
:
void
是否启用环境光照?
Returns
boolean
是否启用环境光照?
Parameters
val:
boolean
Returns
void
Methods
activate
activate
(
resource
:
Skybox
)
:
void
Parameters
resource:
Skybox
Returns
void
Globals
scene-
graph
Skybox
Info
_enabled
_envmap
_isRGBE
_resource
_useIBL
enabled
envmap
isRGBE
useIBL
activate
Generated using
TypeDoc
天空盒相关信息