3D refraction impostor.

Recent days I played with pv3d´s 2.0 shading-capabilities. My idea was to create a little impostor-mapping, using pv3d-shaders behind the scenes and draw the output into a bitmapData. So here´s the little AS3-snippet called refraction impostor.

pv3d refraction impostor

If you move your mouse you can affect the rotation and, in this way the look the refraction. By clicking within the stage you can toggle through different blend-modes.

Finally here are the sources.

Cheers.

Antwort schreiben