summaryrefslogtreecommitdiff
path: root/src/content_cao.h
diff options
context:
space:
mode:
authorRob Blanckaert <rob@withpiper.com>2017-09-01 23:12:15 -0700
committerparamat <mat.gregory@virginmedia.com>2017-09-14 04:06:05 +0100
commita9d43a04713dd0342d675f3bbb5cbacd863b4118 (patch)
treedde4ca88964a67c1a27211eca6f6fcf96fc246d0 /src/content_cao.h
parent604fe2083d70fea92b6c53c9a9d1c1ffdcb36610 (diff)
downloadminetest-a9d43a04713dd0342d675f3bbb5cbacd863b4118.tar.gz
minetest-a9d43a04713dd0342d675f3bbb5cbacd863b4118.tar.bz2
minetest-a9d43a04713dd0342d675f3bbb5cbacd863b4118.zip
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.
Diffstat (limited to 'src/content_cao.h')
-rw-r--r--src/content_cao.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content_cao.h b/src/content_cao.h
index 93b532aad..575aad241 100644
--- a/src/content_cao.h
+++ b/src/content_cao.h
@@ -106,6 +106,7 @@ private:
float m_step_distance_counter = 0.0f;
u8 m_last_light = 255;
bool m_is_visible = false;
+ s8 m_glow = 0;
std::vector<u16> m_children;