1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Allow nodes to have their post_effect_color affected by lighting (#13637)

Co-authored-by: DS <ds.desour@proton.me>
This commit is contained in:
Gregor Parzefall 2023-08-24 20:16:36 +02:00 committed by GitHub
parent 92b6ff4721
commit aea9242a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 73 additions and 9 deletions

View file

@ -588,3 +588,36 @@ minetest.register_node("testnodes:drowning_1", {
groups = {dig_immediate=3},
})
-- post_effect_color_shaded
minetest.register_node("testnodes:post_effect_color_shaded_false", {
description = S("\"post_effect_color_shaded = false\" Node"),
drawtype = "allfaces",
tiles = {"testnodes_post_effect_color_shaded_false.png"},
use_texture_alpha = "blend",
paramtype = "light",
sunlight_propagates = true,
post_effect_color = {a = 128, r = 255, g = 255, b = 255},
post_effect_color_shaded = false,
walkable = false,
is_ground_content = false,
groups = {dig_immediate=3},
})
minetest.register_node("testnodes:post_effect_color_shaded_true", {
description = S("\"post_effect_color_shaded = true\" Node"),
drawtype = "allfaces",
tiles = {"testnodes_post_effect_color_shaded_true.png"},
use_texture_alpha = "blend",
paramtype = "light",
sunlight_propagates = true,
post_effect_color = {a = 128, r = 255, g = 255, b = 255},
post_effect_color_shaded = true,
walkable = false,
is_ground_content = false,
groups = {dig_immediate=3},
})