Hi~
I use DrawViewportMeshes to redraw boxes(transfered to meshes) with several colors,but the perspective view adds red color to them.I don’t know where dose it come from and how to stop it.
PS:I use trigger to update.
Please help me~Thanks a lot!
Those artefacts are typical of the same mesh being drawn twice. It seems something other than your code is also drawing that mesh, causing the depth-buffer fighting. You probably need to find whatever parameter is drawing those same boxes.