Lighting is working way better and now for world generation work.

This commit is contained in:
Zed A. Shaw 2024-12-28 12:04:21 -05:00
parent 9c03e850b5
commit 194cc6664b
8 changed files with 57 additions and 63 deletions

View file

@ -9,26 +9,12 @@
namespace lighting {
struct LightSource {
int strength = 0; // lower is better
float radius = 1.0f; // higher is farther, in squares
int strength = 0;
float radius = 1.0f;
};
const int MIN = 50;
const int MAX = 170;
const int MID = 130;
const std::array<int, 10> LEVELS{
MAX,
160,
150,
140,
MID,
120,
110,
90,
70,
MIN,
};
const int MIN = 35;
const int MAX = 95;
class LightRender {
public: