Tried to refactor for but #42 but nothing worked. I'll try later.
This commit is contained in:
parent
05fc9062a7
commit
a1c3f4df5a
5 changed files with 17 additions and 19 deletions
|
|
@ -143,7 +143,7 @@ namespace scene {
|
|||
actor.anim.apply(*actor.st.sprite, actor.pos);
|
||||
actor.anim.apply(actor.text, actor.pos);
|
||||
if(actor.effect) {
|
||||
actor.effect->setUniform("u_time", actor.anim.subframe);
|
||||
actor.effect->setUniform("u_time", $clock.getElapsedTime().asSeconds());
|
||||
sf::Vector2f u_resolution{float(actor.anim.frame_width), float(actor.anim.frame_height)};
|
||||
actor.effect->setUniform("u_resolution", u_resolution);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue