This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
// Tunable parameters | |
uniform float zoom; // How much to zoom (out) for the effect ~ 0.5 - 1.0 | |
uniform float corner_radius; // Corner radius as a fraction of the image height |