diff --git a/screenshots/ring.png b/screenshots/ring.png new file mode 100644 index 0000000..003a013 Binary files /dev/null and b/screenshots/ring.png differ diff --git a/src/main.cpp b/src/main.cpp index c70d421..f75678e 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,10 +11,12 @@ const double ASPECT_RATIO = 16.0 / 9.0; const int WIDTH = 1920; const int HEIGHT = static_cast(WIDTH / ASPECT_RATIO); -const int SAMPLES_PER_PIXEL = 32; +const int SAMPLES_PER_PIXEL = 8; const int MAX_DEPTH = 5; -const colour pink(0.973, 0.784, 0.863); +// fee2aa +// +const colour pink(254.0/255.0, 226.0/255.0, 170.0/255.0); const colour grey(0.133, 0.133, 0.133); colour ray_colour(const ray& r, const hittable& world, int depth) @@ -94,7 +96,7 @@ hittable_list random_scene() //world.add(make_shared(point3(-4, 1, 0), 1.0, material2)); auto material3 = make_shared(pink, 0.5); - int sphere_count = 3; + int sphere_count = 10; for (int i = 0; i < sphere_count; i++) { float a = 6.28 * (float)i/sphere_count - 100.0; @@ -103,7 +105,7 @@ hittable_list random_scene() float y = 2.0*cos(a); float z = r*cos(a); point3 pos(x,y,z); - world.add(make_shared(pos, 4.0, material3)); + world.add(make_shared(pos, 2.0, material3)); }