Skip to content

Commit

Permalink
Added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Jorquera committed Mar 14, 2024
1 parent 3a06f10 commit 2126238
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ A simple C++ Raytracer based on "Ray Tracing in One Weekend" book.

![render image with motion blur](docs/render-motion-blur.png)

![render image with marble textyre](docs/render-marble.png)

## Features

* Raytracing sphere geometries with front face detection.
Expand Down
Binary file added docs/render-marble.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void twoPerlinSpheres() {
scene->add(make_shared<Sphere>(Point(0.0, -1000.0, 0.0), 1000, make_shared<Lambertian>(checkerTexture)));
scene->add(make_shared<Sphere>(Point(0.0, 1.2, 0.0), 1.2, make_shared<Lambertian>(perlinTexture)));

Camera camera(16.0 / 9.0, 100, 50, 400, 20.0, Vector(10.0, 2.0, 3.0), Vector(0.0, 1.0, 0.0), Vector(0.0, 1.0, 0.0));
Camera camera(16.0 / 9.0, 500, 50, 1920, 20.0, Vector(10.0, 2.0, 3.0), Vector(0.0, 1.0, 0.0), Vector(0.0, 1.0, 0.0));

camera.render(scene, "image.ppm");
}
Expand Down

0 comments on commit 2126238

Please sign in to comment.