🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Smooth Falloff?

Started by
2 comments, last by MJP 3 years, 10 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

Advertisement

I think you will find this helpful.

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

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

Check out smoothstep

This topic is closed to new replies.

Advertisement