Skip to content
No description, website, or topics provided.
Crystal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
crystal_tracer
output.png
scene.json
shard.lock
shard.yml

README.md

Crystal tracer

This is a very basic raytrace renderer written in Crystal for my talk "Computer Graphics for Ruby developers".

Please take into account that this project is not optimised in any way and only uses single process.

How to use

You can use already compiled binary

SCENE=./scene.json ./crystal_tracer

Or you can compile your own version:

shards install; crystal build src/crystal_tracer.cr --release;

Render output will be saved in output.png within projects root direcrtory.

alt text

You can’t perform that action at this time.