Distortion/displacement effect using a depth map.
Modification of the original CC effect by david clarke.
Parameters-
XdisplaceAmount: amount of displacement horizontally.
YdisplaceAmount: amount of displacement vertically.
intensity: increases the displacement intensity.
diffuse image = samplerBack
depthmap image = samplerFront
Screenshot-
example1- sprite and horizontal-gradient depthmap resulting in a skewed effect.
example2- Photo and depthMap resulting in a 3d effect.(similar to Google camera/Depthy)
fx and xml files-
https://dl.dropboxusercontent.com/u/22173473/DepthdisplaceEffect.rar
-----------------------------------------------
Added 23/Feb/2016
Demo capx for above image-
https://dl.dropboxusercontent.com/u/22173473/DISPDEMO1.capx