cocos_set_skybox
Configure a Cocos Creator scene's skybox by setting environment lighting type, HDR usage, and cube map textures to create realistic backgrounds for 3D games.
Instructions
Configure the scene's cc.SkyboxInfo.
env_lighting_type: 0=HEMISPHERE_DIFFUSE (cheap default), 1=AUTOGEN_HEMISPHERE_DIFFUSE, 2=DIFFUSEMAP_WITH_REFLECTION (PBR, needs envmap).
envmap_uuid points at a cc.TextureCube asset. Pass empty string "" to clear. Pass None to leave fields unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| enabled | No | ||
| envmap_uuid | No | ||
| use_hdr | No | ||
| env_lighting_type | No |