new UltralDynamicSky(cloudRender, params)
- Description:
- 时间天气系统,设置游戏引擎天气效果以及时间
- Source:
- engine/UDS.js, line5
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cloudRender |
CloudRenderApp | 云渲染类实例 | ||||||||||||
params |
object | 参数
Properties
|
Methods
changeTime(hour, minute)
- Description:
- 根据目标时间修改时间
- Source:
- engine/UDS.js, line52
Parameters:
Name | Type | Default | Description |
---|---|---|---|
hour |
number |
10
|
24小时制,例如:22表示晚上10点 |
minute |
number |
10
|
60分钟制,例如:30表示30分 |
changeWeather(weatherType)
- Description:
- 根据传入的UDS字段来设置天气类型
- Source:
- engine/UDS.js, line29
Parameters:
Name | Type | Description |
---|---|---|
weatherType |
* | UDS字段 |
changeWeatherEffectParameters(params)
- Description:
- 修改天气效果的参数,params['Time For Materials To Dry Out'] 默认值 90, params['Time For Materials To Gather Snow'] 默认值40, params['Time For Snow To Melt'] 默认值90, params['Time For Materials To Gather Dust'] 默认值30, params['Amount Of Snow To Turn To Wetness When Melted'] 默认值0.75, params['Snow Coverage Lights Up Height Fog'] 默认值0.5
- Source:
- engine/UDS.js, line149
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | 参数,以下参数供选择
Properties
|
init()
- Description:
- 初始化
- Source:
- engine/UDS.js, line159
setAtmosphericFog(density)
- Description:
- 设置大气雾
- Source:
- engine/UDS.js, line84
Parameters:
Name | Type | Default | Description |
---|---|---|---|
density |
number |
0.0075
|
大气雾浓度,默认0.0075,范围0-1,值越小,浓度越小 |
setSkyColorMode(mode)
- Description:
- 设置天空/云颜色模式
- Source:
- engine/UDS.js, line118
Parameters:
Name | Type | Description |
---|---|---|
mode |
SkyColorMode | 模式 |
setSkyMode(mode)
- Description:
- 设置天空模式
- Source:
- engine/UDS.js, line98
Parameters:
Name | Type | Description |
---|---|---|
mode |
SkyMode | 天空模式 |
setVolumeFog(enable, distance)
- Description:
- 设置体积雾
- Source:
- engine/UDS.js, line69
Parameters:
Name | Type | Default | Description |
---|---|---|---|
enable |
boolean | 是否开启 | |
distance |
number |
1000
|
团雾可见范围,默认1000米,单位米 |