Skip to content

Instantly share code, notes, and snippets.

@avanderw
avanderw / water-reflection-effect
Created July 26, 2013 08:37
This effect will reflect a display object and apply a displacement map filter which animated each frame. The result is what looks like something reflected on the surface of water. This is a response to a request on my site, www.avanderw.co.za, for a commented and compilable version of this effect. To run this file, include it in your editor of c…
package net.avdw
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.BitmapDataChannel;
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.DisplacementMapFilter;
import flash.filters.DisplacementMapFilterMode;
import flash.geom.Matrix;