summaryrefslogtreecommitdiff
path: root/client/drawing2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/drawing2.lua')
-rw-r--r--client/drawing2.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/drawing2.lua b/client/drawing2.lua
index 5c39a93..aade7d5 100644
--- a/client/drawing2.lua
+++ b/client/drawing2.lua
@@ -27,7 +27,7 @@ do
local function apm(...)
for _,x in ipairs({...}) do table.insert(map,x) end
end
-
+
vertices[1] = {0,0, 1}
for n=0,5 do apv(ve(n,1)) end
for n=0,5 do apv(vi(n,0)) end
@@ -99,11 +99,11 @@ vec4 position(mat4 transform_projection, vec4 vertex_position)
float a = clamp( (zoom-zthr0)/zthrd, 0, 1);
a = max(fillness, a);
-
+
int tidx = int(tile_type);
tcol = (tidx == 0) ? vec4(0.0) : vec4(fillness*colors[tidx], a);
-
-
+
+
return transform_projection * vertex_position;
}
]],[[
@@ -147,7 +147,6 @@ local function draw_map(camera,map) -- luacheck: no redefined
-- this does not catch every single nonvisible chunk
goto next
end
-
set_imesh(ch.imesh)
love.graphics.drawInstanced(shape_mesh, count, tl.x, tl.y)