Help with Texture Projection
Posted: Sun Mar 17, 2019 2:23 am
Hey Amplify and shaders experts,
I'm struggling to find a solution to make simple pattern overlay effect like it is shown on this page:
http://wiki.amplify.pt/index.php?title= ... een_Params
My problem is that I don't know how to keep it not moving when translate(move) the camera while keeping the pattern not distorted. (See attached .gif)
https://gfycat.com/BoldTallAfricanpiedkingfisher
https://i.imgur.com/sUW4bP1.png
I managed to achieve this result by zeroing out .w component of the position input to the MVP matrix (using MVP matrix instead of UnityObjectToClipPos ).
https://gfycat.com/FamousClearcutBorer
But I don't know how to make the texture projection without perspective distortion. Any help would be much appreciated. Thank you in advance.
I'm struggling to find a solution to make simple pattern overlay effect like it is shown on this page:
http://wiki.amplify.pt/index.php?title= ... een_Params
My problem is that I don't know how to keep it not moving when translate(move) the camera while keeping the pattern not distorted. (See attached .gif)
https://gfycat.com/BoldTallAfricanpiedkingfisher
https://i.imgur.com/sUW4bP1.png
I managed to achieve this result by zeroing out .w component of the position input to the MVP matrix (using MVP matrix instead of UnityObjectToClipPos ).
https://gfycat.com/FamousClearcutBorer
But I don't know how to make the texture projection without perspective distortion. Any help would be much appreciated. Thank you in advance.