Search code examples
opengldirectxglslshaderhlsl

Shader value remap - Blend Falloff


I would like to know if there's a way to remap a value that goes from 0 to 1 constantly like this.

enter image description here

Into those values (those are examples).

enter image description here

This might be some function transformation but I can't find the way to do that. I've tried using a lookup texture but in my opinion this is not the best solution.
Thank you very much.


Solution

  • As @dari said, the smoothstep function is the best solution to achieve what I need.