IEnvironmentModel

模型的属性配置

关系

Extends

IEnvironmentModel Extends IPluginModel

继承: IPluginModel

属性

props

模型的属性配置

props: IPluginModelProps

time

当前时间,场景中的时间设置,影响光照效果

time: string

类型: string

wetaher

当前天气,场景中的天气配置信息

wetaher: Weather

类型: Weather

方法

setWeather

设置天气效果

setWeather(type, strength): void

参数

  • type: WeatherType 天气类型
  • strength: number 天气强度

返回:void

startLiveWeather

开启实时天气功能

startLiveWeather(): void

返回:void

updateLight

根据时间更新光照

updateLight(time): void

参数

  • time: string 时间字符串,根据指定时间调整场景的光照效果

返回:void

updateShadow

修改阴影

updateShadow(value): void

参数

  • value: boolean

返回:void

updateSky

修改近地天空盒

updateSky(value): void

参数

  • value: boolean

返回:void

updateWeather

更新天气效果

updateWeather(wetaher): void

参数

  • wetaher: Weather 天气配置对象,更新场景中的天气效果和强度

返回:void

BIMFlux AI