There is a free caustics generator software (search google), using this one export an animated series of textures
Just normap map and do every other thing mentioned in the first link (which is the main base of this shader)
Attach your caustics to the array and you will see the 4th splat is now blending with main texture, normal texture and this detail caustics.
Code may look messy, but sure you can tidy it yourself.