Skip to content
Permalink
Browse files

Liquid sources: Backface-cull sides and base. Remove unused special t…

…iles

Fixes most z-fighting caused by underwater nodeboxes.
Special tiles were for 'new style water' (lowered water level) which was
removed a few years ago.
  • Loading branch information...
paramat committed Oct 27, 2018
1 parent cf0e49f commit 58f6994e085e60c6a5c78661d2355c42d280623a
Showing with 6 additions and 11 deletions.
  1. +6 −11 mods/default/nodes.lua
@@ -1944,25 +1944,23 @@ minetest.register_node("default:water_source", {
tiles = {
{
name = "default_water_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
-- New-style water source material (mostly unused)
{
name = "default_water_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
@@ -2036,24 +2034,23 @@ minetest.register_node("default:river_water_source", {
tiles = {
{
name = "default_river_water_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
{
name = "default_river_water_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
@@ -2135,25 +2132,23 @@ minetest.register_node("default:lava_source", {
tiles = {
{
name = "default_lava_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
},
},
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = "default_lava_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
backface_culling = false,
},
},
paramtype = "light",

0 comments on commit 58f6994

Please sign in to comment.
You can’t perform that action at this time.