diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-13 10:05:33 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-13 10:05:33 +0800 |
commit | 4cc00c26cd6fb11bcd96a3e8416a450302c95e98 (patch) | |
tree | a74e5334594bccc07058db489e570727c3478d2a /utils | |
parent | 51717f873f3d4886871ee4d3537c06bff0c6d021 (diff) | |
download | SoopyV2-4cc00c26cd6fb11bcd96a3e8416a450302c95e98.tar.gz SoopyV2-4cc00c26cd6fb11bcd96a3e8416a450302c95e98.tar.bz2 SoopyV2-4cc00c26cd6fb11bcd96a3e8416a450302c95e98.zip |
fix line being vis thru walls
Diffstat (limited to 'utils')
-rw-r--r-- | utils/renderUtils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/renderUtils.js b/utils/renderUtils.js index 5c44b92..1491756 100644 --- a/utils/renderUtils.js +++ b/utils/renderUtils.js @@ -35,14 +35,14 @@ module.exports = { b: b * 255 }; }, - drawLine:function (x, y, z, x2, y2, z2, r, g, b, thickness=1, phase=true) { + drawLine:function (x, y, z, x2, y2, z2, r, g, b, thickness=1) { GL11.glBlendFunc(770, 771); GL11.glEnable(GL11.GL_BLEND); GL11.glLineWidth(thickness); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_DEPTH_TEST); - if(phase)GL11.glDepthMask(false); + GL11.glDepthMask(false); GlStateManager.func_179094_E(); Tessellator.begin(3).colorize(r, g, b); @@ -56,7 +56,7 @@ module.exports = { GlStateManager.func_179121_F(); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_DEPTH_TEST); - if(phase)GL11.glDepthMask(true); + GL11.glDepthMask(true); GL11.glDisable(GL11.GL_BLEND); }, drawLineWithDepth:function (x, y, z, x2, y2, z2, r, g, b,t) { |