Implement light correction for HUD, create new artwork

This commit is contained in:
Till Affeldt 2020-04-24 19:52:03 +02:00
parent 677382c142
commit 084ee8c9f5
9 changed files with 28 additions and 13 deletions

View File

@ -1,10 +1,10 @@
# Regional Weather
A weather pack for [__Climate API__](https://github.com/t-affeldt/climate_api) by Till Affeldt (TestificateMods)
![](https://raw.githubusercontent.com/t-affeldt/regional_weather/master/screenshot.png)
![](https://raw.githubusercontent.com/t-affeldt/regional_weather/master/screenshot.webp)
Not every biome is the same and neither should their weather be.
Regional Weather controls it's effects with the local climate in mind.
Regional Weather controls its effects with the local climate in mind.
Experience the humid air of the rain forest and harsh desert sandstorms.
## License information
@ -17,11 +17,11 @@ The entire source code is available on [Github](https://github.com/t-affeldt/reg
### Particles
- Hail textures: *CC BY-SA (3.0)* made by me
- Snow flake textures: *CC BY-SA (3.0)* by paramat, found in snowdrift mod at https://github.com/paramat/snowdrift
- Snow composite texture: *CC BY-SA (3.0)* by Piet Affeldt, created from aforementioned snow flakes by paramat (please credit original artist as well)
- Rain textures: *CC BY-SA (3.0)* by Piet Affeldt (an original design for this mod)
- Snow composite texture: *CC BY-SA (3.0)* by Cap, created from aforementioned snow flakes by paramat (please credit original artist as well)
- Rain textures: *CC BY-SA (3.0)* by Cap (an original design for this mod)
### Block Textures
- Puddle texture: *CC BY-SA (3.0)* by Piet Affeldt
- Puddle textures: *CC BY-SA (3.0)* by Cap
- Snow layers and ice block using textures from *default* (not included)
### Sounds
@ -29,13 +29,15 @@ The entire source code is available on [Github](https://github.com/t-affeldt/reg
- Light Rain sounds: *CC BY 3.0* by Arctura from https://freesound.org/people/Arctura/sounds/34065/
- Wind sound: *CC BY (3.0)* by InspectorJ from https://freesound.org/people/InspectorJ/sounds/376415/
- Hail sound: *CC0* by ikayuka from https://freesound.org/people/ikayuka/sounds/240742/
- Puddle footstep sound: *CC0* by swordofkings128 from https://freesound.org/people/swordofkings128/sounds/398032/
### HUD Overlays
- Frost HUD: *CC BY-SA (3.0)* by Piet Affeldt
- Frost HUD: *CC BY-SA (3.0)* by Cap
- Original texture for sand storm HUD: *CC0* from https://freestocktextures.com/texture/dirty-baking-paper,1202.html, edits by me under *CC0* as well
### Assets in screenshots
- All screenshots and editing by me: *CC BY-SA (3.0)*
- Screenshots and editing: *CC BY-SA (3.0)* by me
- Logos and artwork: *CC BY-SA (3.0)* by Cap
- Lato Font (for the Logo): *OFL* by Łukasz Dziedzic from http://www.latofonts.com/lato-free-fonts/
- Liberation Fonts (for the text): *OFL*, see https://github.com/liberationfonts/liberation-fonts
- Used texture pack: Polygonia (128px edition) *CC BY-SA (4.0)* by Lokrates. See https://forum.minetest.net/viewtopic.php?f=4&t=19043

View File

@ -52,6 +52,12 @@ for i = 1,VARIANT_COUNT do
regional_weather_puddle = 1
},
drop = "",
sounds = {
footstep = {
name = "weather_puddle",
gain = 0.8
}
}
})
end
end

View File

@ -18,7 +18,7 @@ effects["climate_api:skybox"] = {
},
cloud_data = {
density = 1,
color = "#ffffff00",
color = "#ffffff80",
thickness = 40,
speed = {x=0,y=0,z=0}
},

View File

@ -14,7 +14,8 @@ local effects = {}
effects["climate_api:hud_overlay"] = {
file = "weather_hud_fog.png^[opacity:100",
z_index = -200
z_index = -200,
color_correction = true
}
effects["climate_api:skybox"] = {

View File

@ -20,7 +20,8 @@ local effects = {}
effects["climate_api:hud_overlay"] = {
file = "weather_hud_sand.png",
z_index = -100
z_index = -100,
color_correction = true
}
effects["regional_weather:damage"] = {
@ -45,7 +46,6 @@ effects["climate_api:particles"] = {
effects["climate_api:skybox"] = {
sky_data = {
type = "plain",
base_color = "#f7e4bfff",
clouds = true,
},
cloud_data = {
@ -59,8 +59,13 @@ effects["climate_api:skybox"] = {
local function generate_effects(params)
local override = {}
local light = math.max(params.light / 15, 0.2)
local color = {r = 247 * light, g = 228 * light, b = 191 * light, a = 256}
override["climate_api:skybox"] = {
cloud_data= {
sky_data = {
base_color = color
},
cloud_data = {
height = params.player:get_pos().y - 20
}
}

View File

@ -12,7 +12,8 @@ local effects = {}
effects["climate_api:hud_overlay"] = {
file = "weather_hud_frost.png",
z_index = -100
z_index = -100,
color_correction = true
}
effects["climate_api:particles"] = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
screenshot.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 MiB

BIN
sounds/weather_puddle.ogg Normal file

Binary file not shown.