mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
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.
This commit is contained in:
parent
604fe2083d
commit
a9d43a0471
9 changed files with 52 additions and 20 deletions
|
@ -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 = <color>, -- sets color of nametag as ColorSpec
|
||||
infotext = "", -- by default empty, text to be shown when pointed at object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue