Can I somehow avoid this artifact? It’s a two closely spaced polygons.
This effect appear on the Intel onboard card. On the discrete card this not happens. I think this due to depth test precision. I can disable depth test, but for the complex scene it’s a bad solution.
My test code:
from panda3d.core import *
import direct.directbase.DirectStart
cm = CardMaker('test')
cm.setFrame(0, 257, 0, 257)
np1 = render.attachNewNode(cm.generate())
np1.setColor(1,0,0,1)
np2 = render.attachNewNode(cm.generate())
np2.setColor(0,1,0,1)
np2.setPos(100, -2, 100)
np2.setBin('', 1)
run()