WebGL/OpenGL ES gives you perspective correct texturing "for free" if you use homogeneous coordinates. The example below shows you how textures can get distorted/warped if you go out of your way to break things.