Map is now working well and all light is good but it's causing saturation fatigue because of the low levels and low saturation. I'll have to work on contrast and probably jut up the wall contrast.

This commit is contained in:
Zed A. Shaw 2024-11-28 04:27:14 -05:00
parent 1fab1d2d6d
commit 988edf13d7
5 changed files with 16 additions and 19 deletions

View file

@ -9,6 +9,8 @@
using std::vector, std::pair;
using namespace fmt;
const int WALL_LIGHT_LEVEL = 3;
void dump_map(const std::string &msg, Matrix &map) {
println("----------------- {}", msg);
for(auto row : map) {
@ -424,8 +426,7 @@ void Map::render_light(LightSource source, Point at) {
}
}
const int wall_light = source.strength+3;
const int wall_light = source.strength + WALL_LIGHT_LEVEL;
for(auto point : has_light) {
for(int i = -1; i <= 1; i++) {
for(int j = -1; j <= 1; j++) {