I have a page that uses this WebGL shader to make a transisiton from one image to another: https://glsl.io/transition/ee15128c2b87d0e74dee
All of my files, the JS and HTML and images, etc... I ziped here:https://app.box.com/s/ao03nu1lujly17ws74v1
I can't get the transision to transision from the size of the first image to the size of the next image.
Right now it just stretches both images to the size of the canvas, no matter what the size of the image is.
I want it to transition from one image size to the next smoothly using the progress counter as an aid to calculate the size.
If that can't be done, then I want to keep the aspect raitio of the images unchanged.
Can anyone give me any tips?
I am using this library for transisioning: https://github.com/glslio/glsl-transition
I used this as the starting point: github.com/glslio/glsl-transition-examples (example1)
Edited by Promit, 19 July 2014 - 09:47 PM.