I was going to reply to this topic, then I realised it’s actually a hard thing to explain and probably deserves a full tutorial/reference. So I made a new topic here so people can refer to it as needed.
It’s probably hard to understand in a pure text form, so I plan on adding some pictures when I have time (I may not be able to get them all done for a couple days due to other commitments).