In JavaFX, when accidentally two surfaces of two shapes are overlapping, their rendering is somehow dirty, trying to use both materials.
I tried to avoid it by adding 1 pixel extra height of one of the shapes which works as long as I don't zoom out and the 1 pixel difference dissolves. Then the effect reappears. It is more distracting as this "pattern" flashes when I move the objects.
Is there a way to avoid this behaviour?