Merge branch 'master' into 1.16

This commit is contained in:
gnembon committed 2020-06-18 01:57:42 -03:00
commit f5a7455c19
2 files changed
+2 -3

No files matched your search

@@ -62,8 +62,7 @@ public class ShapesRenderer
//RenderSystem.shadeModel(7425);
RenderSystem.shadeModel(GL11.GL_FLAT);
RenderSystem.enableAlphaTest();
RenderSystem.defaultAlphaFunc();
//RenderSystem.alphaFunc(GL11.GL_GREATER, 0.005F);
RenderSystem.alphaFunc(GL11.GL_GREATER, 0.003f);
RenderSystem.disableCull();
RenderSystem.disableLighting();
RenderSystem.depthMask(false);
@@ -98,7 +98,7 @@ __structure_renderer(player_name) ->
l(from, to) = structure_data;
total_size = _euclidean(from, to);
density = max(10, total_size/10);
draw_shape('box', 15, 'from', from, 'to', to+1, 'color', 0x00FFFFFF, 'line', 3, 'fill', 0x00FFFF22);
draw_shape('box', 15, 'from', from, 'to', to+1, 'color', 0x00FFFFFF, 'line', 3, 'fill', 0x00FFFF08);
structure_pieces = slice(sort_key(structure_pieces, _euclidean_sq((_:2+_:3)/2,ppos)), 0, config:'max_pieces');
for (structure_pieces, l(piece, direction, from, to) = _;
r = 255 - floor(128 * _i/config:'max_pieces');