Fix node highlight z-fighting

This commit is contained in:
stujones11 2017-02-26 14:56:23 +00:00
parent b0d487312e
commit 479e234ba7
2 changed files with 22 additions and 1 deletions

View File

@ -102,7 +102,8 @@ local function register_scaffold(name, groups)
groups.cracky = 1
minetest.register_node(name, {
paramtype = "light",
drawtype = "glasslike",
drawtype = "mesh",
mesh = "meshnode_highlight.obj",
is_ground_content = false,
sunlight_propagates = true,
use_texture_alpha = true,

View File

@ -0,0 +1,20 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib meshnode_highlight.mtl
o Cube
v -0.506010 -0.506010 0.506010
v -0.506010 -0.506010 -0.506010
v 0.506010 -0.506010 -0.506010
v 0.506010 -0.506010 0.506010
v -0.506010 0.506010 0.506010
v -0.506010 0.506010 -0.506010
v 0.506010 0.506010 -0.506010
v 0.506010 0.506010 0.506010
usemtl None
s off
f 5 6 2 1
f 6 7 3 2
f 7 8 4 3
f 8 5 1 4
f 1 2 3 4
f 8 7 6 5