ViewerManager class

增加了高质量渲染的viewer,并提供了一系列场景配置api

Signature:

export declare class ViewerManager 

Constructors

ConstructorDescription
(constructor)(viewer)Constructs a new instance of the ViewerManager class

Methods

MethodDescription
enabledAutoExposure(enabled)自动曝光开关
enabledRealSky(enabled)实时天空模式开关
enabledReflect(enabled)反射开关
isRealSkyEnabled()返回当前viewerManager的模式
setBackgroundImage(image)设置背景贴图
setBackgroundIntensity(intensity)设置背景亮度
setBackgroundMode(mode)设置背景模式
setCirrusAmount(amount)设置高空层云量
setCloudAmount(amount)设置积云云量
setIBLIntensity(intensity)设置环境光亮度对模型的影响程度
setStandardEV(value)曝光程度
setSunLightIntensity(intensity)设置太阳光强度
setSunLightPhi(phi)设置太阳光俯仰角
setSunLightTheta(theta)设置太阳光方位角
setWindDirection(direction)设置风向
setWindSpeed(speed)设置风速
shotScreen()截图
switchEngine()切换渲染引擎
syncCamera(cameraData)同步相机数据
updateReflection(value)设置反射强度