#include #include #include "defines.h" #include "Log.h" #include "ImageProcessingShader.h" #include "Interpolator.h" Interpolator::Interpolator(Source *subject, const SourceCore &target) : subject_(subject), from_(static_cast (*subject)), to_(target), cursor_(0.f) { } void Interpolator::apply(float percent) { cursor_ = CLAMP( percent, 0.f, 1.f); }