goraytracer
is a yet another implemention of "Ray Tracing in One Weekend" book [1]. I highly recommend it for everybody who is interested in learning the fundamentals of ray tracing. In the end of the book 1, you can create some cool looking images like this one:
$ go get github.com/eozer/goraytracer/cmd/goraytracer
goraytracer
generates an image in .ppm
file format [2] by writing pixel data to stdout. To generate an image, you can pipe the output to a file:
$ ./goraytracer > output.ppm
You can later on convert output.ppm
to other file formats. For example, I used pnmtopng
to convert the images under assets/ directory from .ppm to .png format.
GNU LESSER GENERAL PUBLIC LICENSE.