Moving to a 'less constructors' style.

This commit is contained in:
Zed A. Shaw 2026-03-03 23:55:28 -05:00
parent ea791270b3
commit 56b4580466
2 changed files with 8 additions and 13 deletions

View file

@ -96,6 +96,7 @@ void Raycaster::apply_sprite_effect(shared_ptr<sf::Shader> effect, float width,
}
std::shared_ptr<sf::Shader> Raycaster::apply_lighting_effect(components::Position& sprite_pos, matrix::Matrix &lights) {
// BUG: this is applying it to all sprites, put bottle far away then another close to see
auto effect = $brightness;
float level = lights[sprite_pos.location.y][sprite_pos.location.x] * PERCENT;
// this boosts the brightness of anything we're aiming at