An open API service indexing awesome lists of open source software.

https://github.com/eliasku/rtweekend-c-wasm

Ray Tracing in One Weekend implementation in pure C for WebAssembly
https://github.com/eliasku/rtweekend-c-wasm

Last synced: 2 months ago
JSON representation

Ray Tracing in One Weekend implementation in pure C for WebAssembly

Awesome Lists containing this project

README

          

# 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

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

Install dependencies, build and start local server

```shell
npm i
npm start
```

Navigate to [localhost:8080](http://localhost:8080)

## Target goals

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