Moving to a 'less constructors' style.
This commit is contained in:
parent
ea791270b3
commit
56b4580466
2 changed files with 8 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue