Appearance
backGround
BackGround
new BackGround(viewer, opts)
场景背景业务类
Param | Type | Description |
---|---|---|
viewer | Viewer | 场景类 |
opts | object | 参数 |
opts.type | string | 场景背景类型 skybox,image,color,noBackground |
opts.skyType | string | 天空盒类型 sphere,dynamic,cube |
opts.texture | string | 图片路径 |
opts.color | string | 背景颜色 |
opts.position | Array | 天空坐标数组 |
opts.rotation | Array | 天空旋转坐标数组 |
opts.radius | number | 天空盒半径 |