What you actually want to do, is to sample the image in the pixel shader, but offset the UV values slightly by your displacement before you pass ...
確定! 回上一頁