Skip to content

Ray Tracing in One Weekend implementation in pure C for WebAssembly

Notifications You must be signed in to change notification settings

eliasku/rtweekend-c-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in One Weekend


Using minimalistic C and WebAssembly

final render

Build & Run

Provide environment variables for LLVM and Binaryen if not match default locations

export LLVM_ROOT="/usr/local/opt/llvm"
export BINARYEN_ROOT="/usr/local/opt/binaryen"

Install dependencies, build and start local server

npm i
npm start

Navigate to localhost:8080

Target goals

  • Use pure C language
  • No Emscripten
  • No stdlib
  • No heap allocations
  • Compile to wasm32 using clang

About

Ray Tracing in One Weekend implementation in pure C for WebAssembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published