Comment by SquareWheel
19 hours ago
I remember Notch talking about the lighting calculations being one of the hardest parts to program, so I can understand that being a challenge.
Mojang made large improvements to the lighting engine in 1.20, bringing it in line with the performance mods Phosphor[1] and Starlight[2]. Despite being deprecated now, they might still offer some useful insight into how to approach such a system in a performant way. You'll need to be mindful of the licenses, but it's likely easier than reverse-engineering Minecraft (even with mappings).
Will definitely take a look at this, Thank you. Im btw studied the Minecraft code already so i often use the decompiled code as reference.