Skip to content

Commit d5e4e8c

Browse files
committed
Fix weather particles
1 parent f1ed743 commit d5e4e8c

File tree

1 file changed

+5
-1
lines changed
  • assets/forgetmenot/shaders/post/fabulous

1 file changed

+5
-1
lines changed

assets/forgetmenot/shaders/post/fabulous/sort.frag

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ void main() {
563563

564564
try_insert(translucent_color, translucent_depth);
565565
try_insert(entity_color, entity_depth);
566-
try_insert(weather_color, weather_depth);
566+
//try_insert(weather_color, weather_depth);
567567
try_insert(particles_color, particles_depth);
568568
//if(clouds_depth < max_depth) color_layers[0].rgb = mix(color_layers[0].rgb, clouds_color.rgb, clouds_color.a);
569569

@@ -783,5 +783,9 @@ void main() {
783783
composite = mix(composite, vec3(0.0), (smoothstep(0.0, 20.0 * darknessFactor, blockDist)) * frx_effectDarkness * clamp01(-(frx_luminance(frx_vanillaClearColor) - 1.0)));
784784
#endif
785785

786+
if(weather_depth < min_depth) {
787+
composite = mix(composite, weather_color.rgb, weather_color.a);
788+
}
789+
786790
fragColor = max(vec4(1.0 / 65536.0), vec4(composite, doRefraction));
787791
}

0 commit comments

Comments
 (0)