mirror of
https://github.com/bevyengine/bevy
synced 2024-12-03 18:09:12 +00:00
e2ed42fd75
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |