This implements base ambient lighting for tiles which helps with tiles like lava and ceiling lights.

This commit is contained in:
Zed A. Shaw 2025-05-29 12:34:25 -04:00
parent 74a1801069
commit 3dc70c3af6
11 changed files with 48 additions and 17 deletions

View file

@ -19,14 +19,10 @@ namespace lighting {
size_t $width;
size_t $height;
Matrix $lightmap;
Matrix $ambient;
Pathing $paths;
LightRender(size_t width, size_t height) :
$width(width),
$height(height),
$lightmap(height, matrix::Row(width, 0)),
$paths(width, height)
{}
LightRender(Matrix& walls);
void reset_light();
void set_light_target(const Point &at, int value=0);