~theothornhill/lisp-tracer

ray tracer written in common lisp
Change README to markdown
131edec5 — Theodor Thornhill 6 months ago
Add cond-let macro
0dacc79f — Theodor Thornhill 6 months ago
Remove hashtags

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~theothornhill/lisp-tracer
read/write
git@git.sr.ht:~theothornhill/lisp-tracer

You can also use your local clone with git send-email.

#Lisp tracer

A ray tracer made in Common Lisp following The Ray Tracer Challenge by Jamis Buck

#Example

img

#How to run

You need to enable double floats. We need the higher precision to avoid acne.

(setf *read-default-float-format* 'double-float)

Then evaluate lisp-tracer.asd and go to the corresponding lisp-tracer package in the REPL. The renders can be found in src/renders, and will create a picture.ppm in root.

#Tests

You can run tests by evaluating lisp-tracer-tests.asd, then running

(run :lisp-tracer-tests :style :spec)

from lisp-tracer-tests package.