This implements base ambient lighting for tiles which helps with tiles like lava and ceiling lights.
This commit is contained in:
parent
74a1801069
commit
3dc70c3af6
11 changed files with 48 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue