SkyBox(optionsopt)

天空盒类

new SkyBox(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>

包含以下参数的对象

Properties
Name Type Attributes Default Description
sources Object <optional>

CubeMap六个面的图片url或者Image对象

show Boolean <optional>
true

是否显示

specularEnvironmentMaps String <optional>

赋予场景模型的环境贴图url,只能是ktx格式的贴图

sphericalHarmonicCoefficients Array.<Cartesian3> <optional>

球谐函数系数,用于控制环境贴图的光照,如果存在specularEnvironmentMaps,则必填

Example
var skyBox = new Motor.SkyBox({
  sources : {
    positiveX : 'skybox_px.png',
    negativeX : 'skybox_nx.png',
    positiveY : 'skybox_py.png',
    negativeY : 'skybox_ny.png',
    positiveZ : 'skybox_pz.png',
    negativeZ : 'skybox_nz.png'
  },
  specularEnvironmentMaps:'url/to/ktxfile',
  sphericalHarmonicCoefficients:[...],
  isBIM:true
});