Lighting now uses pathing to determine where it can go, but _distance_ to determin strength. Looks way better.

This commit is contained in:
Zed A. Shaw 2024-12-26 04:39:07 -05:00
parent 31620adf7a
commit f46b5f15ef
8 changed files with 72 additions and 63 deletions

View file

@ -37,6 +37,8 @@ namespace matrix {
};
struct in_box {
size_t from_x;
size_t from_y;
size_t x = 0; // these are set in constructor
size_t y = 0; // again, no fancy ~ trick needed
size_t left = 0;
@ -45,6 +47,7 @@ namespace matrix {
size_t bottom = 0;
in_box(Matrix &mat, size_t x, size_t y, size_t size);
float distance();
bool next();
void dump();
};