Help with Texture Projection

Node-based Shader Editor

Help with Texture Projection

Postby ShaderCube » 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.
ShaderCube
 
Posts: 10
Joined: Fri Dec 21, 2018 9:20 am

Re: Help with Texture Projection

Postby naitoookami » Sun Mar 17, 2019 2:29 am

Sounds extremely similar to what's going on in a previous post. Try the solution offered in this post

viewtopic.php?f=23&t=914
naitoookami
 
Posts: 17
Joined: Tue Oct 02, 2018 5:24 pm

Re: Help with Texture Projection

Postby ShaderCube » Sun Mar 17, 2019 9:00 pm

Perfect! That is exactly what I need. Thank you a lot, you helped me to avoid tons of struggles ahead.
ShaderCube
 
Posts: 10
Joined: Fri Dec 21, 2018 9:20 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 4 guests