modif shaders callback (adding dtime)

This commit is contained in:
Clément Le Bihan
2021-06-16 01:23:59 +02:00
parent f549faa424
commit 1fad8de0ca
11 changed files with 43 additions and 33 deletions
@@ -11,10 +11,10 @@ namespace BBM
{
}
void ShaderDrawable2DSystem::onFixedUpdate(WAL::ViewEntity<ShaderComponentDrawable2D> &entity)
void ShaderDrawable2DSystem::onUpdate(WAL::ViewEntity<ShaderComponentDrawable2D> &entity, std::chrono::nanoseconds dtime)
{
auto &shader = entity->getComponent<ShaderComponentDrawable2D>();
shader.onFixedUpdate(entity, this->_wal);
shader.update(entity, this->_wal, dtime);
}
}