Why does minetest store light in the nodes?

For people working on the C++ code.
Post Reply
Sires
Member
Posts: 188
Joined: Mon Jan 02, 2017 21:00
GitHub: Sires0
IRC: Sires
In-game: Sires Sores Siri Seris or anything ppl call me
Location: :noitacoL

Why does minetest store light in the nodes?

by Sires » Post

It might seem like a dumb question for a minetest developer but I have never really dig down into the code and I'm too noob with minetest C code structure to really understand anything from the code. Is it just for faster calculation maybe?
I don't have anything important to say.

sofar
Developer
Posts: 2132
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Why does minetest store light in the nodes?

by sofar » Post

Minetest doesn't use hardware lighting. All lighting is calculated in software. In order not to have to recalculate light over and over again, it is stored in the map.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests