From a9d43a04713dd0342d675f3bbb5cbacd863b4118 Mon Sep 17 00:00:00 2001 From: Rob Blanckaert Date: Fri, 1 Sep 2017 23:12:15 -0700 Subject: Object properties: Add 'glow', disables light's effect if negative The 'glow' value is added to the ambient light value. Negative 'glow' disables light's effect on object colour, for faking self-lighting, UI-style entities, or programmatic colouring in mods. --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 3c2278c8d..eac6f6697 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4131,6 +4131,10 @@ Definition tables -- ^ Limit automatic rotation to this value in degrees per second, -- value < 0 no limit. backface_culling = true, -- false to disable backface_culling for model + glow = 0, + -- ^ Add this much extra lighting when calculating texture color. + value < 0 disables light's effect on texture color. + For faking self-lighting, UI style entities, or programmatic coloring in mods. nametag = "", -- by default empty, for players their name is shown if empty nametag_color = , -- sets color of nametag as ColorSpec infotext = "", -- by default empty, text to be shown when pointed at object -- cgit v1.2.3