mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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:
parent
92b6ff4721
commit
aea9242a96
11 changed files with 73 additions and 9 deletions
|
@ -728,6 +728,8 @@ void read_content_features(lua_State *L, ContentFeatures &f, int index)
|
|||
read_color(L, -1, &f.post_effect_color);
|
||||
lua_pop(L, 1);
|
||||
|
||||
getboolfield(L, index, "post_effect_color_shaded", f.post_effect_color_shaded);
|
||||
|
||||
f.param_type = (ContentParamType)getenumfield(L, index, "paramtype",
|
||||
ScriptApiNode::es_ContentParamType, CPT_NONE);
|
||||
f.param_type_2 = (ContentParamType2)getenumfield(L, index, "paramtype2",
|
||||
|
@ -959,6 +961,8 @@ void push_content_features(lua_State *L, const ContentFeatures &c)
|
|||
|
||||
push_ARGB8(L, c.post_effect_color);
|
||||
lua_setfield(L, -2, "post_effect_color");
|
||||
lua_pushboolean(L, c.post_effect_color_shaded);
|
||||
lua_setfield(L, -2, "post_effect_color_shaded");
|
||||
lua_pushnumber(L, c.leveled);
|
||||
lua_setfield(L, -2, "leveled");
|
||||
lua_pushnumber(L, c.leveled_max);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue