#Gradient support???
1 messages · Page 1 of 1 (latest)
when I was playing around with gradients, just normal ones, there was some banding effect going on when the gradient was dark, does that still happen?
What you mean by banding?
This is just an image of a video thumbnail, the video is deleted
but you can clearly see like segments
though, it did not happen when it was bright colors, only when it was dark
people said that gmod just does this and wasn't a way to fix it
Ah, this is because of 32 bit color schema, which means there is only 255 levels of brightness.
Possible fix is by using dithering, but i don't know how to make that
My gradients will do it too, and i can't do anything with it, unless i'll find a way to make dithering
alright
@deep palm I have an idea how to implement that
You need to use sobel shader, it draws things depending on contrast, then you blur it a little
Then you combine it with a noise texture (basically noise texture means is alpha noised, where one pixel has random alpha)
and then you draw red square on all rt
then use another noise texture
draw blue square on all rt
then use another noise texture
and draw green square on all rt
it should make a dithering effect, i guess