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

@ -147,6 +147,7 @@ minetest.register_node("basenodes:water_source", {
liquid_alternative_source = "basenodes:water_source",
liquid_viscosity = WATER_VISC,
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
post_effect_color_shaded = true,
groups = {water = 3, liquid = 3},
})
@ -177,6 +178,7 @@ minetest.register_node("basenodes:water_flowing", {
liquid_alternative_source = "basenodes:water_source",
liquid_viscosity = WATER_VISC,
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
post_effect_color_shaded = true,
groups = {water = 3, liquid = 3},
})
@ -206,6 +208,7 @@ minetest.register_node("basenodes:river_water_source", {
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
post_effect_color_shaded = true,
groups = {water = 3, liquid = 3, },
})
@ -238,6 +241,7 @@ minetest.register_node("basenodes:river_water_flowing", {
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
post_effect_color_shaded = true,
groups = {water = 3, liquid = 3, },
})

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},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B