Hi Noah-w,
Thanks for your reply. Actually, the issue has nothing to do with the camera or z-far. For example, when I use renderEncoder?.drawIndexedPrimitives(type: .triangle...), the rendering is perfect, and even the areas that weren't correct in .line mode are displayed properly. The cube rotates as expected. However, in line mode, if a line isn’t rendered, it remains missing throughout the entire rotation of the cube, even when it falls within the z-near and z-far range.
Topic:
Graphics & Games
SubTopic:
Metal