Make the raycaster 'highlight' things you point at.
This commit is contained in:
parent
bc31750d9c
commit
4c03fe1ed3
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ void Raycaster::sprite_casting(sf::RenderTarget &target) {
|
|||
apply_sprite_effect(effect, sprite_width, sprite_height);
|
||||
} else {
|
||||
effect = $brightness;
|
||||
level += (aiming_at == rec.second) * 0.1;
|
||||
effect->setUniform("darkness", level);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue