Updated Earth to be more realistically-colored

This commit is contained in:
connor committed 2026-10-14 18:07:05 -04:00
1 parent 51ace681a7
commit d61552c33c
4 files changed
+56 -9

No files matched your search

+3 -2
View File
@@ -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())