A Go implementation of the book Ray Tracing in One Weekend. The repository provides a library to describe and render your own scenes. For more detail, see examples/main.go
.
git clone git@github.com:y-taka-23/raytracing-go.git
cd raytracing-go
make examples
./bin/example > example.ppm
open example.ppm
color | result |
---|---|
(0.8, 0.1, 0.1) | |
(1.0, 1.0, 1.0) | |
(0.0, 0.0, 0.0) |
fuzziness | result |
---|---|
0.0 | |
0.15 | |
0.3 |
refractive index | result |
---|---|
1.0 | |
1.5 | |
2.0 |
virtical angle (degree) | result |
---|---|
90 | |
60 | |
30 |
aperture | result |
---|---|
0.0 | |
0.5 | |
1.0 |
focus distance | result |
---|---|
6 | |
9 | |
12 |
- Shirley, P. (2016). Ray Tracing in One Weekend (online edition available)