Closes Anuken/Mindustry-Suggestions/issues/5891

This commit is contained in:
Anuken 2025-10-13 20:50:17 +09:00
parent 0b4c4c4049
commit bf61e4d6c2
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ public final class FogRenderer{
dynamicFog.getTexture().setFilter(TextureFilter.linear); dynamicFog.getTexture().setFilter(TextureFilter.linear);
Draw.shader(Shaders.fog); Draw.shader(Shaders.fog);
Draw.color(state.rules.dynamicColor, 0.5f); Draw.color(state.rules.dynamicColor, Float.isNaN(state.rules.dynamicColor.a) ? 0.5f : Math.max(0.5f, state.rules.dynamicColor.a));
Draw.fbo(dynamicFog.getTexture(), world.width(), world.height(), tilesize); Draw.fbo(dynamicFog.getTexture(), world.width(), world.height(), tilesize);
//TODO ai check? //TODO ai check?
if(state.rules.staticFog){ if(state.rules.staticFog){

View file

@ -195,7 +195,7 @@ public class MinimapRenderer{
float wf = world.width() * tilesize; float wf = world.width() * tilesize;
float hf = world.height() * tilesize; float hf = world.height() * tilesize;
Draw.color(state.rules.dynamicColor, 0.5f); Draw.color(state.rules.dynamicColor, Float.isNaN(state.rules.dynamicColor.a) ? 0.5f : Math.max(0.5f, state.rules.dynamicColor.a));
Draw.rect(Tmp.tr1, wf / 2, hf / 2, wf, hf); Draw.rect(Tmp.tr1, wf / 2, hf / 2, wf, hf);
if(state.rules.staticFog){ if(state.rules.staticFog){