How can i skew a sprite ?

You can even see this kind of thing on seems in UE4 too (it is part of the 4th or another tutorial series videos):

In the editor, you then play with the textures coordinates to align them (automatically or do it manually)

I think i catched where your texture interpolation problem is. Do you compute the clipspace coordinates (divide by w) in your vertexshader or in your pixelshader?
It may be related to the texture interpolation happening in the vertexshader instead of the pixelshader, then when going to screenspace, the interpolation is wrong.

What is clip space, NDC…
http://omega.di.unipi.it/web/IUM/Waterloo/node15.html

1 Like