Improved distortion sample

This is an improved version of the frame-buffer distortion sample currently shipping with Panda3D 1.6.2. Whereas the original sample just samples a wave texture to offset the frame-buffer sample location, the shader in this version actually uses normals from the Egg model. It also gives a slight tint to the object. You can easily adjust the color and intensity of the tint at the top of the “distortion.sha” file.

And here’s the download.

that’s quite a cool one :slight_smile: anyone noticed that the image distorted by the sphere appears to be constantly moving? intresting thing.