Hey all, I am working with a 384 x 216 pixel game and I have a problem with the light occluder producing weird artifacts. This effect increases with the distance to the light source. Minimal reproducible example scene:

If we zoom in a bit on the lamp and the LightOccluder2D there are stripes of what looks like some kind of inverted anti-aliasing going on, the further we get from the light source.

I have tried fiddling with the settings and the closest I get to removing this effect is when setting Cull Mode to CounterClockWise. That makes the artifacts go away on the top side but adds them to the bottom side instead. Still does not look too good though.

Any ideas?

  • Toxe replied to this.

    Btw, I am running Godot 4.1.2 stable on Fedora 38.

    This is a known bug that hasn't been resolved yet with the 2D renderer. I'll post the link when I'm home tomorrow.

    borstis I tried a couple of things in 4.2-dev6 but the only way to get rid of the problem was to set the renderer to Compatibility.

      Toxe That may actually be a way forward, at least for the time being. Thanks for looking into the problem!

      award Yeah, I could not find any existing issue either. I'll file a bug report. Thanks for taking the time to help out!