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
|
@ -22,7 +22,7 @@ TEST_CASE("lighting a map works", "[lighting]") {
|
|||
LightSource source1{6, 1.0};
|
||||
LightSource source2{4,3};
|
||||
|
||||
LightRender lr(map.width(), map.height());
|
||||
LightRender lr(map.walls());
|
||||
|
||||
lr.reset_light();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue