BugFix ImageFilter timing

new debuging shader
This commit is contained in:
Bruno Herbelin
2022-05-07 18:24:38 +02:00
parent 82be9326a8
commit 137b5ca4f9
2 changed files with 80 additions and 1 deletions

View File

@@ -215,6 +215,8 @@ ImageFilteringShader::ImageFilteringShader(): ImageShader()
custom_shading_.setShaders("shaders/image.vs", shader_code_);
timer_ = g_timer_new ();
iTime_ = 0.0;
iFrame_ = 0;
ImageShader::reset();
}
@@ -227,7 +229,7 @@ ImageFilteringShader::~ImageFilteringShader()
void ImageFilteringShader::update(float dt)
{
iTime_ += dt;
iTime_ += 0.001 * dt;
if (iTime_ > FLT_MAX)
iTime_ = 0.0;