Godot Version
4.6.2
Question
Hi, all 
I am using CanvasModulate to darken my game world, and using pointlight2d’s to light it.. one on the player, one on torches etc etc.
I am getting really bad banding or moire patterns as the lighting fades out and I am trying to find out if there is a way to smooth this out?
I have attached a screenshot showing it. Any advice on this would be greatly appreciated.
thanks
V
Could it be that the texture resolution of your point light is too low?
Just guessing here. If it’s a gradient texture maybe increasing its size/scale helps..
is there a way to increase the actual resolution of the gradient without adjusting the scale? Yes scale makes for a smoother drop off, but then I lose all the dramatic shadows and everything just flattens out. Is there a bit depth or the like that I could adjust?
I thought you can also adjust size in stead of scale, effectively increasing the resolution, or increase size and if it grows too large use scale to decrease rendered size.
Other hypothesis: is the CanvasModulate scaled?
If neither works, I’m out, unless I have steps to reproduce (and my family laptop back ,
)
oh my gosh.. I think … I think you’ve nailed it. So.. playing with the texture scale AND the width and height in the gradient settings themselves and I have a smooth falloff now! It looks amazing.
thank you so much! I was pulling my hair out on this.
You’re welcome! Can I see a screenshot of the result? Just for the joy of it.
absolutely! here it is… with smooth falloffs from the player’s light and the torches on the walls.
Very nice graphics! May I suggest adding some noise to the floor texture. Noise in the light texture might also be a good idea, it will hide the banding too. Some level of banding is inevitable in smooth color fades.