use soft overlay instead of multi-layer mesh node

This commit is contained in:
Vanessa Ezekowitz 2017-06-16 17:13:12 -04:00
parent f8a5b765ab
commit 369295d516
5 changed files with 19 additions and 59 deletions

@ -95,11 +95,12 @@ FORMALDARKNESS = {
minetest.register_node("unifiedbricks:brickblock", {
description = "Brick Block",
tiles = {
"unifiedbricks_brickblock.png",
{ name = "unifiedbricks_mortar.png", color = 0xffffffff },
"unifiedbricks_brickblock.png"
},
drawtype = "mesh",
mesh = "unifiedbricks_brick_block.obj",
overlay_tiles = {
{ name = "unifiedbricks_mortar.png", color = "white" }
},
use_texture_alpha = true,
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
@ -150,10 +151,11 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
description = "Brick block (dark multicolor)",
tiles = {
"unifiedbricks_brickblock_multicolor_dark.png",
{ name = "unifiedbricks_mortar.png", color = 0xffffffff },
},
drawtype = "mesh",
mesh = "unifiedbricks_brick_block.obj",
overlay_tiles = {
{ name = "unifiedbricks_mortar2.png", color = "white" }
},
use_texture_alpha = true,
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
@ -169,11 +171,12 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
description = "Brick block (medium multicolor)",
tiles = {
"unifiedbricks_brickblock_multicolor_medium.png",
{ name = "unifiedbricks_mortar.png", color = 0xffffffff },
"unifiedbricks_brickblock_multicolor_medium.png"
},
drawtype = "mesh",
mesh = "unifiedbricks_brick_block.obj",
overlay_tiles = {
{ name = "unifiedbricks_mortar3.png", color = "white" }
},
use_texture_alpha = true,
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
@ -189,11 +192,12 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
minetest.register_node("unifiedbricks:brickblock_multicolor_light", {
description = "Brick block (light multicolor)",
tiles = {
"unifiedbricks_brickblock_multicolor_light.png",
{ name = "unifiedbricks_mortar.png", color = 0xffffffff },
"unifiedbricks_brickblock_multicolor_light.png"
},
drawtype = "mesh",
mesh = "unifiedbricks_brick_block.obj",
overlay_tiles = {
{ name = "unifiedbricks_mortar4.png", color = "white" }
},
use_texture_alpha = true,
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",

@ -1,44 +0,0 @@
# Blender v2.72 (sub 0) OBJ File: 'unifiedbricks_brick_block.blend'
# www.blender.org
o Cube
v 0.496092 0.496092 0.496092
v 0.496092 0.496092 -0.496092
v -0.496092 0.496092 -0.496092
v -0.496092 0.496092 0.496092
v 0.496092 -0.496092 0.496092
v 0.496092 -0.496092 -0.496092
v -0.496092 -0.496092 -0.496092
v -0.496092 -0.496092 0.496092
v 0.499750 0.499750 0.499750
v 0.499750 0.499750 -0.499750
v -0.499750 0.499750 -0.499750
v -0.499750 0.499750 0.499750
v 0.499750 -0.499750 0.499750
v 0.499750 -0.499750 -0.499750
v -0.499750 -0.499750 -0.499750
v -0.499750 -0.499750 0.499750
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vn 0.000000 -1.000000 0.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 1.000000 0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn 0.000000 0.000000 1.000000
g Cube_Cube_base
s off
f 8/1/1 7/2/1 6/3/1 5/4/1
f 4/2/2 3/3/2 7/4/2 8/1/2
f 1/3/3 2/4/3 3/1/3 4/2/3
f 2/2/4 1/3/4 5/4/4 6/1/4
f 3/2/5 2/3/5 6/4/5 7/1/5
f 1/2/6 4/3/6 8/4/6 5/1/6
g Cube_Cube_overlay
f 16/1/1 15/2/1 14/3/1 13/4/1
f 12/2/2 11/3/2 15/4/2 16/1/2
f 9/3/3 10/4/3 11/1/3 12/2/3
f 10/2/4 9/3/4 13/4/4 14/1/4
f 11/2/5 10/3/5 14/4/5 15/1/5
f 9/2/6 12/3/6 16/4/6 13/1/6

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B