plasticine

command module
v0.0.0-...-052c9d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 13 Imported by: 0

README

Plasticine

A tiny ray tracer made using Go following the Ray Tracing in One Weekend book. One part of my adventures with computer graphics, and how to render them in software.

This one does go beyond by running the ray tracing in parallel on all CPU cores.

Running

$ mkdir out
$ go run ./...

An output image will be created at out/out.png.

A render of 3 spheres

The render was done with the resolution of 1440x810 with 256 samples and 96 light bounces (main.maxDepth). Took 22.395 seconds on my Ryzen 7 5800U.

Scene

The scene is currently hardcoded in object/world.go, and only supports spheres as the meshes. Currently implemented shaders include diffuse, metal and dielectric.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL