Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 58f6994
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions mods/default/nodes.lua
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 58f6994

Please sign in to comment.