mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Fix a couple bugs with DM filter gui rendering, and remove need for color masking support
This commit is contained in:
4 files changed
+10
-31
No files matched your search
@@ -22,7 +22,6 @@ public class MekanismRenderHelper extends GLSMHelper<MekanismRenderHelper> {
|
||||
private Map<KnownStates, Boolean> changedStates = new EnumMap<>(KnownStates.class);
|
||||
private boolean hasMatrix;
|
||||
private boolean colorSet;
|
||||
private boolean colorMasked;
|
||||
private boolean glowEnabled;
|
||||
private float lightmapLastX;
|
||||
private float lightmapLastY;
|
||||
@@ -43,10 +42,6 @@ public class MekanismRenderHelper extends GLSMHelper<MekanismRenderHelper> {
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapLastX, lightmapLastY);
|
||||
glowEnabled = false;
|
||||
}
|
||||
if (colorMasked) {
|
||||
GlStateManager.colorMask(true, true, true, true);
|
||||
colorMasked = false;
|
||||
}
|
||||
if (colorSet) {
|
||||
resetColor();
|
||||
}
|
||||
@@ -122,18 +117,6 @@ public class MekanismRenderHelper extends GLSMHelper<MekanismRenderHelper> {
|
||||
return fluid == null ? this : enableGlow(fluid.getLuminosity());
|
||||
}
|
||||
|
||||
//Color
|
||||
public MekanismRenderHelper colorMask(boolean red, boolean green, boolean blue, boolean alpha) {
|
||||
//If they are all being set to true, then we don't need the colorMasked boolean to be true
|
||||
colorMasked = !red || !green || !blue || !alpha;
|
||||
GlStateManager.colorMask(red, green, blue, alpha);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MekanismRenderHelper colorMaskAlpha() {
|
||||
return colorMask(true, true, true, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MekanismRenderHelper color(float red, float green, float blue, float alpha) {
|
||||
//If the color is our default color then we do not need to have colorSet be called
|
||||
|
||||
Reference in new issue
Block a user