Skip to content

Commit

Permalink
have web build be lower quality renders
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonStorm97 committed Oct 10, 2024
1 parent bcd7d55 commit 6c15855
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,13 @@ class Renderer {

auto material3 = std::make_shared<metal>(Colour(0.7, 0.6, 0.5), 0.0);
world.Add(std::make_shared<Sphere>(Point3(4, 1, 0), 1.0, material3));

#if defined(PLATFORM_WEB)
raytracer.SetSamplesPerPixel(5);
raytracer.MaxDepth = 10;
#else
raytracer.SetSamplesPerPixel(500);
raytracer.MaxDepth = 50;

#endif
raytracer.vfov = 20;
raytracer.lookfrom = Point3(13, 2, 3);
raytracer.lookat = Point3(0, 0, 0);
Expand Down

0 comments on commit 6c15855

Please sign in to comment.