Now have sounds and shaders working on the button for each of the different elements.
This commit is contained in:
parent
eb350698aa
commit
2fb1687997
7 changed files with 32 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue