We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abe0848 commit 9519a74Copy full SHA for 9519a74
1 file changed
crates/processing_render/src/graphics.rs
@@ -102,8 +102,8 @@ impl CameraProjection for ProcessingProjection {
102
self.width,
103
self.height, // bottom = height
104
0.0, // top = 0
105
- self.far,
106
self.near,
+ self.far,
107
)
108
}
109
@@ -720,7 +720,7 @@ mod tests {
720
let clip_matrix = proj.get_clip_from_view();
721
// Check some values in the matrix to ensure it's correct
722
// In [0,1] depth orthographic projection, w_axis.z = -near/(far-near)
723
- let expected = -0.1 / (1000.0 - 0.1);
+ let expected: f32 = -0.1 / (1000.0 - 0.1);
724
assert!((clip_matrix.w_axis.z - expected).abs() < 1e-6);
725
726
0 commit comments