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/object_properties.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/object_properties.h') diff --git a/src/object_properties.h b/src/object_properties.h index bd519e9ee..8ab1fa7fd 100644 --- a/src/object_properties.h +++ b/src/object_properties.h @@ -50,6 +50,7 @@ struct ObjectProperties bool automatic_face_movement_dir = false; f32 automatic_face_movement_dir_offset = 0.0f; bool backface_culling = true; + s8 glow = 0; std::string nametag = ""; video::SColor nametag_color = video::SColor(255, 255, 255, 255); f32 automatic_face_movement_max_rotation_per_sec = -1.0f; -- cgit v1.2.3