mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-07-20 17:30:31 +02:00
Add new textures, tweak effects, add fog and freezing of river water
This commit is contained in:
34
ca_weathers/fog.lua
Normal file
34
ca_weathers/fog.lua
Normal file
@ -0,0 +1,34 @@
|
||||
local name = "regional_weather:fog"
|
||||
|
||||
local conditions = {
|
||||
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
||||
effects["climate_api:hud_overlay"] = {
|
||||
file = "weather_hud_fog.png",
|
||||
z_index = -200
|
||||
}
|
||||
|
||||
effects["climate_api:skybox"] = {
|
||||
cloud_data = {
|
||||
density = 1,
|
||||
color = "#ffffffff",
|
||||
thickness = 40,
|
||||
speed = {x=0,y=0,z=0}
|
||||
},
|
||||
priority = 50
|
||||
}
|
||||
|
||||
local function generate_effects(params)
|
||||
local override = {}
|
||||
override["climate_api:skybox"] = {
|
||||
cloud_data = {
|
||||
height = params.player:get_pos().y
|
||||
}
|
||||
}
|
||||
return climate_api.utility.merge_tables(effects, override)
|
||||
end
|
||||
|
||||
climate_api.register_weather(name, conditions, generate_effects)
|
Reference in New Issue
Block a user