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 4dc1350 commit 0d1630cCopy full SHA for 0d1630c
crates/processing_render/src/graphics.rs
@@ -615,7 +615,9 @@ mod tests {
615
};
616
let clip_matrix = proj.get_clip_from_view();
617
// Check some values in the matrix to ensure it's correct
618
- assert_eq!(clip_matrix.w_axis.z, -2.0 / (1000.0 - 0.1));
+ // In [0,1] depth orthographic projection, w_axis.z = -near/(far-near)
619
+ let expected = -0.1 / (1000.0 - 0.1);
620
+ assert!((clip_matrix.w_axis.z - expected).abs() < 1e-6);
621
}
622
623
#[test]
0 commit comments