Advertisement

Smooth Falloff?

Started by August 31, 2020 07:02 PM
2 comments, last by MJP 4 years, 5 months ago

Hi everyone, hope you're all doing well!!

I'm working on a project that evolves clipping colors in an image into a range.

But I've come across a little problem.

This is the code for the color range:

if (image.x > low && image.x < high) {

image.x = 0.0;

}

But the falloff is VERY rough.

Is there any way to make the falloff of this smoother?

Maybe even make an variable that decides how smooth the falloff is?

I would really prefer to do this without any blurring.

Any ideas?

Thanks in advanced,

Shem Namo

I think you will find this helpful.

https://www.youtube.com/watch?v=mr5xkf6zSzk

🙂🙂🙂🙂🙂<←The tone posse, ready for action.

Advertisement

Check out smoothstep

This topic is closed to new replies.

Advertisement