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. --- src/content_cao.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content_cao.h') 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 m_children; -- cgit v1.2.3