Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.0
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.1
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
SceneGlobals
Class SceneGlobals
各类场景级别的渲染参数,将影响全场景的所有物体
Hierarchy
SceneGlobals
Index
Properties
_skybox
ambient
fog
shadows
Accessors
skybox
Methods
activate
Properties
_skybox
_skybox
:
SkyboxInfo
= new SkyboxInfo()
ambient
ambient
:
AmbientInfo
= new AmbientInfo()
场景的环境光照相关信息
fog
fog
:
FogInfo
= new FogInfo()
shadows
shadows
:
ShadowsInfo
= new ShadowsInfo()
平面阴影相关信息
Accessors
skybox
get
skybox
(
)
:
SkyboxInfo
set
skybox
(
value
:
SkyboxInfo
)
:
void
天空盒相关信息
Returns
SkyboxInfo
天空盒相关信息
Parameters
value:
SkyboxInfo
Returns
void
Methods
activate
activate
(
)
:
void
Returns
void
Globals
scene-
graph
Scene
Globals
_skybox
ambient
fog
shadows
skybox
activate
Generated using
TypeDoc
各类场景级别的渲染参数,将影响全场景的所有物体