Lighting is working way better and now for world generation work.
This commit is contained in:
parent
9c03e850b5
commit
194cc6664b
8 changed files with 57 additions and 63 deletions
|
@ -40,8 +40,4 @@ TEST_CASE("lighting a map works", "[lighting]") {
|
|||
matrix::dump("PATHS=====", lr.paths(), light1.x, light1.y);
|
||||
matrix::dump("LIGHTING 1", lighting, light1.x, light1.y);
|
||||
matrix::dump("LIGHTING 2", lighting, light2.x, light2.y);
|
||||
|
||||
// confirm light is set at least at and around the two points
|
||||
REQUIRE(lighting[light1.y][light1.x] == lighting::LEVELS[source1.strength]);
|
||||
REQUIRE(lighting[light2.y][light2.x] == lighting::LEVELS[source2.strength]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue