Edit to simpleLight() function

This commit is contained in:
CJSatnarine
2024-07-10 19:38:22 -04:00
parent d1f5260a88
commit c7d47322fa
4 changed files with 331797 additions and 331796 deletions

Binary file not shown.

663592
image.ppm

File diff suppressed because it is too large Load Diff

View File

@@ -215,6 +215,7 @@ void simpleLight() {
world.add(make_shared<sphere>(point3(0,2,0), 2, make_shared<lambertian>(perlinTexture))); world.add(make_shared<sphere>(point3(0,2,0), 2, make_shared<lambertian>(perlinTexture)));
auto diffusionLight = make_shared<diffuseLight>(colour(4,4,4)); auto diffusionLight = make_shared<diffuseLight>(colour(4,4,4));
world.add(make_shared<sphere>(point3(0,7,0), 2, diffusionLight));
world.add(make_shared<quad>(point3(3,1,-2), vec3(2,0,0), vec3(0,2,0), diffusionLight)); world.add(make_shared<quad>(point3(3,1,-2), vec3(2,0,0), vec3(0,2,0), diffusionLight));
camera cam; camera cam;