Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liamg/raytracing

3D Raytracing in Go
https://github.com/liamg/raytracing

3d raytracer raytracing

Last synced: 4 months ago
JSON representation

3D Raytracing in Go

Awesome Lists containing this project

README

        

# Raytracing in Go

A simple 3D raytracing engine, purely as a learning exercise.

Features:

- Lighting (point, directional, ambient)
- Shadows
- Reflections (*n* levels)
- Object interface for theoretical support for any geometric object (currently supports Triangles, Boxes and Spheres)

## Example output

![](output.png)

The image above was rendered with the example code in [examples/png/main.go](examples/png/main.go)

There's also a basic [terminal-based 3D game demo](examples/game/main.go).

## TODO

- [ ] Texturing