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
- Host: GitHub
- URL: https://github.com/eliasku/rtweekend-c-wasm
- Owner: eliasku
- Created: 2022-10-17T19:11:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T10:38:29.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T20:12:15.466Z (over 1 year ago)
- Language: C
- Size: 52.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ray Tracing in One Weekend
------
Using minimalistic C and WebAssembly
## 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