Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 930 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 930 Bytes

Raytracing 2D Renderer

Animated Cube Suzanne

Written in strict typescript.

It uses multithreading with WebWorkers and a SharedArrayBuffer as the storage for the pixels accross all threads. With planar projection of all faces into a quad tree, it can handle hundreds of vertecies without any performance penalty; but it is still slow.

How to run

First install all build dependencies.

npm install

Then start the webpack bundeling

npm run build

Then start the static file server

node serve.mjs

Open http://localhost:9000 There you see the userinterface

It uses no runtime dependencies and is only 4.7kb (with gzip, no 3D models)