Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gizmo lines deforming or disappearing when partially behind the c…
…amera (#9470) If a line has one point behind the camera(near plane) then it would deform or, if the `depth_bias` setting was set to a negative value, disappear. ## Solution The issue is that performing a perspective divide does not work correctly for points behind the near plane and a perspective divide is used inside the shader to define the line width in screen space. The solution is to perform near plane clipping manually inside the shader before the perspective divide is done.
- Loading branch information