Line MAT Rendering Bug

I’ve noticed an issue when using the Line MAT to render lines of different colors that overlap. As you can see from the patch, using the Line MAT to render overlapping points works fine.

Build: 2025.31550
OS: Windows 10

Line MAT Bug.1.toe (5.1 KB)

Hello @jimbastow

This looks like Z-fighting—a rendering artifact that occurs when two or more polygons occupy the same space. The graphics engine flickers because the GPU can’t consistently determine which polygon to render on top. Interestingly, the points don’t exhibit this issue as much, likely because they aren’t overlapping as closely as the lines. In this example, one way to avoid the artifact is to apply a small depth offset between the lines.

Great catch, thanks!