mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-05 18:30:22 -08:00
Closes Anuken/Mindustry-Suggestions/issues/5891
This commit is contained in:
parent
0b4c4c4049
commit
bf61e4d6c2
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ public final class FogRenderer{
|
|||
dynamicFog.getTexture().setFilter(TextureFilter.linear);
|
||||
|
||||
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);
|
||||
//TODO ai check?
|
||||
if(state.rules.staticFog){
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ public class MinimapRenderer{
|
|||
float wf = world.width() * 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);
|
||||
|
||||
if(state.rules.staticFog){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue