Now have sounds and shaders working on the button for each of the different elements.

This commit is contained in:
Zed A. Shaw 2025-04-25 11:54:30 -04:00
parent eb350698aa
commit 2fb1687997
7 changed files with 32 additions and 22 deletions

View file

@ -213,7 +213,7 @@ namespace guecs {
if($world.has<Effect>(ent)) {
auto& shader = $world.get<Effect>(ent);
if(shader.$active) {
if(shader.$active && !is_shape) {
auto ptr = shader.checkout_ptr();
ptr->setUniform("is_shape", is_shape);
// NOTE: this is needed because SFML doesn't handle shared_ptr