Skip to content
On this page

Focused Pragmatic

ZhongKeTuXin

Open Innovate

大气层设置

显示和隐藏

Javascript
// 默人是 true = 是,false = 否
viewer.scene.skyAtmosphere.show = false;

亮度设置

Javascript
// 默认=0,[-1,1],-1是黑色,1是白色
viewer.scene.skyAtmosphere.brightnessShift = 1;

色调

Javascript
// 默认=0,[0,1] 1为翻转色相
viewer.scene.skyAtmosphere.hueShift = 0;

优化

Javascript
// 计算每个片段而不是每个顶点的气氛。
// 这会产生外观更好的环境,但性能会有所下降。
// 默人是false
viewer.scene.skyAtmosphere.perFragmentAtmosphere = true;

示例代码 code

code示例地址

Released under the MIT License.