The reload mechanism for shaders is a bit better, but still to make them unique.

This commit is contained in:
Zed A. Shaw 2025-04-14 13:16:19 -04:00
parent 08bc48df3d
commit 19b9a4affd
7 changed files with 68 additions and 44 deletions

View file

@ -393,7 +393,6 @@ void Raycaster::update_level(GameLevel level) {
}
void Raycaster::init_shaders() {
std::string the_fucking_name{"rayview_sprites"};
$brightness = shaders::get_shared(the_fucking_name);
$brightness = shaders::get("rayview_sprites");
$brightness->setUniform("source", sf::Shader::CurrentTexture);
}