Tried to refactor for but #42 but nothing worked. I'll try later.

This commit is contained in:
Zed A. Shaw 2026-01-03 00:42:42 -05:00
parent 05fc9062a7
commit a1c3f4df5a
5 changed files with 17 additions and 19 deletions

View file

@ -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);
}