Lighting now uses pathing to determine where it can go, but _distance_ to determin strength. Looks way better.
This commit is contained in:
parent
31620adf7a
commit
f46b5f15ef
8 changed files with 72 additions and 63 deletions
|
@ -49,7 +49,7 @@ namespace lighting {
|
|||
void clear_light_target(const Point &at);
|
||||
void path_light(Matrix &walls);
|
||||
void light_box(LightSource source, Point from, Point &min_out, Point &max_out);
|
||||
int light_level(int level, size_t x, size_t y);
|
||||
int light_level(int level, float distance, size_t x, size_t y);
|
||||
void render_light(LightSource source, Point at);
|
||||
void render_square_light(LightSource source, Point at, PointList &has_light);
|
||||
void render_compass_light(LightSource source, Point at, PointList &has_light);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue