Inverse Lerp

Node-based Shader Editor

Inverse Lerp

Postby jimmyneutron » Thu Nov 30, 2017 2:46 pm

Hi all,

A node I used often in shader forge was inverse lerp, but it appears there is no such node in amplify. does it exist as another node i am unaware of?

I suppose i could use Smoothstep, but it would be ideal to be able to control the interpolation.
alternatively I guess its also possible to remap and then saturate.
But just asking, incase there is another solution.

regards,
jimmy.
jimmyneutron
 
Posts: 4
Joined: Thu Nov 30, 2017 12:54 pm

Re: Inverse Lerp

Postby Amplify_Borba » Thu Nov 30, 2017 5:06 pm

Hello Jimmy!

Although we don't have an InverseLerp node, the equivalent alternative would be to use the Remap Node by setting the Min New and Max New ports to 0 and 1 respectively, and then use Min Old and Max Old in the same way you'd use ports A and B in the InverseLerp node, and finally saturate the generated output like you pointed out.

Please let us know if you have any further questions, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Inverse Lerp

Postby jimmyneutron » Thu Nov 30, 2017 7:50 pm

thank you borba!
jimmyneutron
 
Posts: 4
Joined: Thu Nov 30, 2017 12:54 pm

Re: Inverse Lerp

Postby Amplify_Borba » Fri Dec 01, 2017 5:48 pm

No problem, always glad to help!

Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, the Unity Asset Store thrives on user interaction and direct feedback.
Every bit helps, your feedback is extremely valuable to us!

Don't hesitate to get back in touch should you have any further questions, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests

cron