Closes Anuken/Mindustry-Suggestions/issues/5891
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user