Deform a quad image within the boundary of an object using relative vertices within the object.

Based on: by Inigo Quilez

The four points of the quad deform are the X,Y parameters for the effect. The parameters are relative to the size (width, height) of the original quad / image. 0,0 is the top left. 1,1 is the bottom right.

The deformed quad will not be rendered outside the bound of the original quad. A helper fcn detailed in the examples allows the quad to have vertices outside the original quad size and position.

Download Stable (3.17 KB)



  • Download count 56 total downloads
  • Latest download count 56 downloads of latest version
  • Average download count 2 downloads per day average



  • Order by
Want to leave a comment? Login or Register an account!