add PrecipitationRenderer (WIP)

This commit is contained in:
MihailRis
2025-02-26 02:24:16 +03:00
parent fd59aa4f65
commit b4456fdb51
10 changed files with 203 additions and 28 deletions
+3 -1
View File
@@ -19,7 +19,9 @@
"gui/cross",
"gui/refresh",
"gui/folder_icon",
"gui/settings_icon"
"gui/settings_icon",
"misc/rain",
"misc/snow"
],
"fonts": [
{
+1 -1
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)));
Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB