You can view the Lua in the Nodes folder https://github.com/LAGameStudio/Tilemancer-Nodes/blob/main/lighting.lua