From 42b7d4ff248e3832c792d37034fad076861dac28 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 29 Jan 2022 06:56:21 +0800 Subject: blaze solver + make spotify box go to width of the max scroll + normalise text on spotify overlay so it doesent render an invalid caracter when the text has a dialect or something --- utils/renderUtils.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'utils') diff --git a/utils/renderUtils.js b/utils/renderUtils.js index 1491756..1d3e646 100644 --- a/utils/renderUtils.js +++ b/utils/renderUtils.js @@ -76,6 +76,20 @@ module.exports = { Tessellator.draw(); + GlStateManager.func_179121_F(); + GL11.glEnable(GL11.GL_TEXTURE_2D); + GL11.glDepthMask(true); + GL11.glDisable(GL11.GL_BLEND); + }, + setupLineSmall: function(width){ + GL11.glBlendFunc(770, 771); + GL11.glEnable(GL11.GL_BLEND); + GL11.glLineWidth(width); + GL11.glDisable(GL11.GL_TEXTURE_2D); + GL11.glDepthMask(false); + GlStateManager.func_179094_E(); + }, + endLineSmall: function(){ GlStateManager.func_179121_F(); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDepthMask(true); @@ -90,6 +104,28 @@ module.exports = { Tessellator.draw(); }, + drawLinePoints: function(locations, r, g, b, thickness=1){ + GL11.glBlendFunc(770, 771); + GL11.glEnable(GL11.GL_BLEND); + GL11.glLineWidth(thickness); + GL11.glDisable(GL11.GL_TEXTURE_2D); + GL11.glDepthMask(false); + GlStateManager.func_179094_E(); + + Tessellator.begin(3).colorize(r, g, b); + + locations.forEach(loc => { + Tessellator.pos(...loc); + }); + + Tessellator.draw(); + + + GlStateManager.func_179121_F(); + GL11.glEnable(GL11.GL_TEXTURE_2D); + GL11.glDepthMask(true); + GL11.glDisable(GL11.GL_BLEND); + }, drawBoxAtBlockNotVisThruWalls:function (x, y, z, colorR, colorG, colorB){ GL11.glBlendFunc(770, 771); GL11.glEnable(GL11.GL_BLEND); -- cgit