add PrecipitationRenderer (WIP)

This commit is contained in:
MihailRis 2025-01-12 22:32:41 +03:00
parent fd59aa4f65
commit b4456fdb51
10 changed files with 203 additions and 28 deletions

View file

@ -19,7 +19,9 @@
"gui/cross",
"gui/refresh",
"gui/folder_icon",
"gui/settings_icon"
"gui/settings_icon",
"misc/rain",
"misc/snow"
],
"fonts": [
{

View file

@ -17,7 +17,7 @@ void main() {
float depth = (a_distance/256.0);
float alpha = a_color.a * tex_color.a;
// anyway it's any alpha-test alternative required
if (alpha < (u_alphaClip ? 0.5f : 0.2f))
if (alpha < (u_alphaClip ? 0.5f : 0.15f))
discard;
f_color = mix(a_color * tex_color, vec4(fogColor,1.0),
min(1.0, pow(depth*u_fogFactor, u_fogCurve)));

BIN
res/textures/misc/rain.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

BIN
res/textures/misc/snow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB