Add "ground" to demo scene

This commit is contained in:
2025-09-23 15:36:08 +01:00
parent 9bf8753f42
commit 252489f6d9

1
demo.c
View File

@@ -27,6 +27,7 @@ static const vec3_t camera_pos = { 0.0, 0.0, 0.0 };
static const obj_t scene[] = { static const obj_t scene[] = {
SPHERE(1.0, 0.0, -3.0, 1.0), SPHERE(1.0, 0.0, -3.0, 1.0),
SPHERE(-2.0, 0.0, -5.0, 1.0), SPHERE(-2.0, 0.0, -5.0, 1.0),
SPHERE(0.0, -1001.0, 0.0, 1000.0),
}; };
static pix_t pixbuf[W * H]; static pix_t pixbuf[W * H];