Extend light propagation more than 15 nodes ?

For people working on the C++ code.
Post Reply
wheat8
Member
Posts: 41
Joined: Sat Jul 20, 2024 13:06
Location: France

Extend light propagation more than 15 nodes ?

by wheat8 » Post

Hello, I hope this post won't be redundant about this one: viewtopic.php?t=30837

I'm wondering if it's possible to extend the luminosity created by a torch.

I've read interesting discussions about how light is managed in MT.
https://github.com/minetest/minetest/issues/1362
Light sources are too dark i agree but this is due to the limited light range of 16 nodes.
paramat commented on Jun 22, 2014

and this one:
viewtopic.php?t=15169
There are only 16 light levels defined...which are re-mapped to be a value between 0 and 255.
by neoh4x0r » Tue Jul 23, 2019

So here is my interrogation: Would it be possible to keep 16 different light levels, but to extend the distance that is illuminated ? Or would it be a problem too ?
So the torch would illuminate nodes around like this:
Torch -> 12 -> 11 -> 10 -> 9 -> 8 -> 7 -> 6 -> 5 -> 4 -> 4 -> 3 -> 3 -> 3 -> 2 -> 2 -> 2 -> 2 -> 1 -> 1 -> 1 -> 1 -> 1 -> 0

(sorry if my post is in the wrong place, or if my question isn't relevant ; I don't know much about coding, i'm just curious)

Post Reply