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 [email protected]: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 |
|