Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raywasm

Running an old C-based CPU ray tracer computer science assignment in Wasm.

Screenshot of ray tracer running in a browser.

Setup

  • Install C build tools for your platform.
  • Install emscripten.

Building

  • Run make.

Configuring

  • Tweak input.js to build out a ray traced world.
  • Tweak the raytracer settings in index.html to adjust the rendered size and quality.
    • There's also a CSS style that determines the canvas width.

Running

  • Run make run to start a local web server and load the project.

Cleaning

  • Run make clean.

About

Running a C-based ray tracer in a browser using Wasm.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages