Updated Earth to be more realistically-colored
This commit is contained in:
1 parent
51ace681a7
commit
d61552c33c
4 files changed
+56
-9
No files matched your search
@@ -66,9 +66,10 @@ fn example_scene_on_gpu_and_cpu() {
|
||||
let [r, _, b] = gpu.get_pixel(960, 540).0;
|
||||
assert!(r > 500 && r > 2 * b, "{r} {b}");
|
||||
// Above the limb is empty space, which reads the 64 DN bias; below it, Earth's
|
||||
// dayside.
|
||||
// dayside, lit and blue.
|
||||
assert_eq!(gpu.get_pixel(0, 0).0, [64; 3]);
|
||||
assert!(gpu.get_pixel(0, 1079).0.iter().all(|&d| d > 300));
|
||||
let [r, g, b] = gpu.get_pixel(0, 1079).0;
|
||||
assert!(r > 64 && g > r && b > g, "{r} {g} {b}");
|
||||
let differing = gpu
|
||||
.pixels()
|
||||
.zip(cpu.pixels())
|
||||
|
||||
Reference in new issue
Block a user