much easier to see now...

This commit is contained in:
Brandon Thomas committed 2020-08-15 01:32:13 -04:00
1 parent 3319d32256
commit 20a8be8375
3 files changed
+29 -4

No files matched your search

+27
View File
@@ -18,6 +18,24 @@ impl RgbaF32 {
alpha: 1.0,
}
}
pub fn rgb(r: f32, g: f32, b: f32) -> Self {
Self {
red: r,
green: g,
blue: b,
alpha: 1.0,
}
}
pub fn gray(gray: f32) -> Self {
Self {
red: gray,
green: gray,
blue: gray,
alpha: 1.0,
}
}
}
#[cfg(test)]
@@ -32,4 +50,13 @@ mod test {
assert_eq!(black.blue, 0.0f32);
assert_eq!(black.alpha, 1.0f32);
}
#[test]
pub fn test_gray() {
let gray = RgbaF32::gray(0.5);
assert_eq!(gray.red, 0.5f32);
assert_eq!(gray.green, 0.5f32);
assert_eq!(gray.blue, 0.5f32);
assert_eq!(gray.alpha, 1.0f32);
}
}
+1 -1
View File
@@ -58,7 +58,7 @@ pub fn run(capture_provider: Arc<MultiDeviceCaptureProvider>, calibration_data:
let colorization_strategy = ColorizationStrategy::Color;
let clear_color = RgbaF32::black();
let clear_color = RgbaF32::gray(0.5);
let mut visualizer = PointCloudVisualizer::new(
capture_provider.get_num_cameras(),
+1 -3
View File
@@ -512,9 +512,7 @@ impl PointCloudRenderer {
(1, 2)
};
unsafe {
gl::UseProgram(self.shader_program_id);
}
//let (lower_range, upper_range) = (0, 2);
//for i in 0 .. self.num_cameras {
for i in lower_range .. upper_range {