Waterlily: Avoid z-fighting of base texture with water surface
authoroctacian <enduffy2014@outlook.com>
Sat, 11 Feb 2017 01:13:13 +0000 (17:13 -0800)
committerparamat <mat.gregory@virginmedia.com>
Sun, 12 Feb 2017 01:23:53 +0000 (01:23 +0000)
Avoid z-fighting visible from below.
Raise the nodebox base 1/64th of a node.

mods/flowers/init.lua

index c7cc670e8f2e12ca322fcd645b1cde4546c217e9..da82bb7c6757226933f1ea19395befaed7df321e 100644 (file)
@@ -264,7 +264,7 @@ minetest.register_node("flowers:waterlily", {
        node_placement_prediction = "",
        node_box = {
                type = "fixed",
-               fixed = {-0.5, -0.5, -0.5, 0.5, -15 / 32, 0.5}
+               fixed = {-0.5, -31 / 64, -0.5, 0.5, -15 / 32, 0.5}
        },
        selection_box = {
                type = "fixed",