We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a3a0d commit b9e67bcCopy full SHA for b9e67bc
crates/bevy_gizmos/src/lines.wgsl
@@ -74,8 +74,8 @@ fn vertex(vertex: VertexInput) -> VertexOutput {
74
let near_clipping_plane_height = length(pos0.xyz - pos1.xyz);
75
76
// We can't use vertex.position_X because we may have changed the clip positions with clip_near_plane
77
- let position_a = view.inverse_clip_from_world * clip_a;
78
- let position_b = view.inverse_clip_from_world * clip_b;
+ let position_a = view.world_from_clip * clip_a;
+ let position_b = view.world_from_clip * clip_b;
79
let world_distance = length(position_a.xyz - position_b.xyz);
80
81
// Offset to compensate for moved clip positions. If removed dots on lines will slide when position a is ofscreen.
0 commit comments