adrien-ben/gltf-viewer-rs

Z-Fighting on near-coplanar surfaces

adrien-ben opened this issue · 1 comments

Z-Fighting on near-coplanar surfaces

So, it was a depth buffer precision issue due to the distance between the zNear and zFar of my projection matrix (from 0.1 to 2000.0...).

The solution has been to scale the models at load so that they always fit into a unit cube and the zNear to zFar changed to 0.1 to 10.0.

Resolved in b35599a