Add reflective material

This commit is contained in:
Camden Dixie O'Brien
2025-09-21 19:00:34 +01:00
parent d7667fa266
commit c0d7f106ee
3 changed files with 31 additions and 0 deletions

3
demo.c
View File

@@ -18,6 +18,9 @@ static const obj_t scene[] = {
SPHERE(1.0, 0.0, -3.0, 1.0, LAMBERTIAN(0.6, 0.2, 0.8)),
SPHERE(-0.8, 0.0, -3.8, 1.0, LAMBERTIAN(1.0, 1.0, 1.0)),
SPHERE(-1.0, -0.8, -2.6, 0.2, LAMBERTIAN(0.9, 0.6, 0.2)),
SPHERE(0.3, -0.7, -1.8, 0.3, LAMBERTIAN(1.0, 0.3, 0.1)),
SPHERE(-1.6, -0.8, -2.0, 0.2, REFLECTIVE(0.9, 0.9, 0.9)),
SPHERE(-6.0, 5.0, -5.0, 6.0, REFLECTIVE(0.9, 0.9, 0.9)),
SPHERE(0.0, -1001.0, 0.0, 1000.0, LAMBERTIAN(0.3, 0.3, 0.3)),
};