About this file
A transition between two pictures. The second melts in through soft, cloudy patches that sweep across the frame behind a glowing pink edge, and right at the edge the picture breaks up into small hearts that switch over a moment early or late, so the change sparkles with heart shapes.
Use it for slideshows, galleries, carousels, wedding and Valentine's pages, and page changes; because its inputs are textures, it can cross between photos, videos or two 3D scenes. Run it from 0 to 1 with one uniform, or let it play there and back on its own. Set the edge colour, width and glow, how much the edge breaks into hearts, the heart size and the patch size. The demo has three presets: Pink glow, Gold glow and Soft, and buttons to try it on your own two pictures.
What you get: a GLSL ES 3.00 fragment shader for plain WebGL2, an ES module that returns a three.js ShaderMaterial (pass your two textures as options), a Shadertoy version that reads iChannel0 and iChannel1, and a demo page that runs offline with two built-in pictures. There is also a 10-second 1920 x 1080 H.264 loop of the built-in pictures crossing there and back.
It runs in one pass, at about 1.2 ms of GPU time per frame at 1920 x 1080 on a recent laptop. The README covers wiring up your own pictures in each version, every uniform with its default and range, and performance notes.
What you download
6 files · 6.9 MB · MD, HTML, MP4, FRAG, GLSL, JS
- README.md11 KB MD
- heart-dissolve-transition-demo.html27 KB HTML
- heart-dissolve-transition-loop-1080p.mp46.8 MB MP4
- heart-dissolve-transition.frag9 KB FRAG
- heart-dissolve-transition.shadertoy.glsl8 KB GLSL
- heart-dissolve-transition.three.js10 KB JS
Details
- Shelf
- Shaders
- Type
- Single file
- Topics
- dissolvegirlyglowglslheartsimage transitionloveromanticshadershadertoyslideshowthree jstransitionvalentinesvideo loopwebglwedding
- Licence
- Personal or commercial
What the licence allows
Personal licence
- Use it in projects for yourself, for learning, and in your portfolio.
- Change it and combine it with other work.
- Keep using it forever. The licence does not expire.
- Use it in anything that earns money, including client work and monetised video.
- Use it in a product, a game or an app that is sold or carries ads.
- Resell, redistribute or share the file.
- Put it into a dataset used to train a model.
Commercial licence
- Use it in unlimited commercial projects, including client work.
- Ship it inside products you sell: games, apps, films, print runs, print-on-demand.
- Use it in monetised and sponsored content, and in broadcast.
- Change it, and keep the result. No credit required, though it is always welcome.
- Keep using it forever. The licence does not expire.
- Resell or redistribute the asset as an asset, on its own or in a pack.
- Register it, or anything substantially it, as a logo or trademark.
- Put it into a dataset used to train a model.
Better together
Also in this pack
Shaders