myfoundation / cpu-raytracer-js

CPU Raytracing in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raytracing on the CPU in JavaScript

This project is a very very simple ray tracer (https://en.wikipedia.org/wiki/Ray_tracing_(graphics)) written in pure JS and runnable in a web browser thanks to the use of an HTML Canvas.

It's written manner which is not so optimized for performance but on the other hand more readily readable by humans in order to facilitate the understanding of the underlying code and math. To get started simply download the project and run demo.html.

*based on a literate raytracer in javascript http://macwright.org/literate-raytracer/

Ray Tracer Perview

About

CPU Raytracing in JavaScript

License:GNU General Public License v3.0


Languages

Language:JavaScript 75.5%Language:HTML 24.5%