Back to shaders
Shader test bench
Coord From In
runnable transition
GLSL transition function. Stronghold supplies two demo textures and progress/time uniforms.
Code
// Author: haiyoucuv
// License: MIT
vec4 transition (vec2 uv) {
vec4 coordTo = getToColor(uv);
vec4 coordFrom = getFromColor(uv);
return mix(
getFromColor(mix(uv, coordTo.rg, progress)),
getToColor(mix(coordFrom.rg, uv, progress)),
progress
);
}