Skip to content
On this page

backGround

BackGround

Kind: global class

new BackGround(viewer, opts)

场景背景业务类

ParamTypeDescription
viewerViewer场景类
optsobject参数
opts.typestring场景背景类型 skybox,image,color,noBackground
opts.skyTypestring天空盒类型 sphere,dynamic,cube
opts.texturestring图片路径
opts.colorstring背景颜色
opts.positionArray天空坐标数组
opts.rotationArray天空旋转坐标数组
opts.radiusnumber天空盒半径