Stop lenses z-fighting with water.

This commit is contained in:
Aaron Suen 2019-12-04 19:35:35 -05:00
parent c0eeb997c3
commit 05aeb6dfaa
3 changed files with 19 additions and 19 deletions

View File

@ -44,7 +44,7 @@ local basedef = {
drawtype = "mesh",
mesh = "nc_optics_lens.obj",
selection_box = nodecore.fixedbox(
{-0.5, -0.5, -3/8, 0.5, 0.5, 3/8}
{-7/16, -7/16, -3/8, 7/16, 7/16, 3/8}
),
tiles = {
txr,

View File

@ -2,16 +2,16 @@
# www.blender.org
mtllib nc_optics_lens.mtl
o Cube
v 0.500000 -0.500000 0.140000
v 0.500000 -0.500000 -0.360000
v -0.500000 -0.500000 -0.360000
v -0.500000 -0.500000 0.140000
v 0.500000 0.500000 0.140000
v 0.500000 0.500000 -0.360000
v -0.500000 0.500000 -0.360000
v -0.500000 0.500000 0.140000
v 0.000000 0.000000 0.390000
v 0.000000 0.000000 -0.110000
v 0.437500 -0.437500 0.125000
v 0.437500 -0.437500 -0.375000
v -0.437500 -0.437500 -0.375000
v -0.437500 -0.437500 0.125000
v 0.437500 0.437500 0.125000
v 0.437500 0.437500 -0.375000
v -0.437500 0.437500 -0.375000
v -0.437500 0.437500 0.125000
v 0.000000 0.000000 0.375000
v 0.000000 0.000000 -0.125000
vt 1.000000 0.750000
vt 1.000000 0.250000
vt 0.000000 0.250000
@ -42,14 +42,14 @@ vn 0.0000 1.0000 0.0000
vn 1.0000 0.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.4472 0.0000 0.8944
vn 0.0000 -0.4472 0.8944
vn 0.0000 0.4472 0.8944
vn -0.4472 0.0000 0.8944
vn 0.0000 0.4472 -0.8944
vn -0.4472 0.0000 -0.8944
vn 0.0000 -0.4472 -0.8944
vn 0.4472 0.0000 -0.8944
vn 0.4961 0.0000 0.8682
vn 0.0000 -0.4961 0.8682
vn 0.0000 0.4961 0.8682
vn -0.4961 0.0000 0.8682
vn 0.0000 0.4961 -0.8682
vn -0.4961 0.0000 -0.8682
vn 0.0000 -0.4961 -0.8682
vn 0.4961 0.0000 -0.8682
g Cube_Cube_sides
usemtl sides
s off