Change-Id: I0635a5f4f02a1de222656133bca1ff2da8ce59f6
Reviewed-on: https://gerrit.libreoffice.org/54711
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
This commit is contained in:
Andrea Gelmini 2018-05-23 16:10:58 +02:00 committed by Christian Lohmaier
parent 232103d09e
commit 451a76ec6f

View file

@ -38,7 +38,7 @@ void main()
// We want the ripple to span all of the slide at the end of the transition.
float t = time * (sqrt(2.0) * (slideRatio < 1.0 ? 1.0 / slideRatio : slideRatio));
// Interpolate the distance to the center in fonction of the time.
// Interpolate the distance to the center in function of the time.
float mixed = smoothstep(t*w-v, t*w+v, dist);
// Get the displacement offset from the current pixel, for fragments that have been touched by the ripple already.