Amplifying your potential.
Page 1 of 1

Inverse Lerp

PostPosted: Thu Nov 30, 2017 2:46 pm
by jimmyneutron
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.

Re: Inverse Lerp

PostPosted: Thu Nov 30, 2017 5:06 pm
by Amplify_Borba
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!

Re: Inverse Lerp

PostPosted: Thu Nov 30, 2017 7:50 pm
by jimmyneutron
thank you borba!

Re: Inverse Lerp

PostPosted: Fri Dec 01, 2017 5:48 pm
by Amplify_Borba
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!