https://github.com/blazekill/webray
WebGPU powered ray tracer + Svelte based editor
https://github.com/blazekill/webray
raytracing rust svelte tailwindcss wasm wgpu
Last synced: about 1 year ago
JSON representation
WebGPU powered ray tracer + Svelte based editor
- Host: GitHub
- URL: https://github.com/blazekill/webray
- Owner: BLaZeKiLL
- License: mit
- Created: 2024-01-04T11:25:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T23:16:36.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T22:51:16.854Z (about 1 year ago)
- Topics: raytracing, rust, svelte, tailwindcss, wasm, wgpu
- Language: Rust
- Homepage: https://blazekill.github.io/webray/
- Size: 71.2 MB
- Stars: 58
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
WebRay
Webray is a WebGPU powered ray tracer + Svelte based editor
> :warning: **WebGPU**: Is an experimental api. Webray is tested on the latest desktop chrome version. your system may slow down or crash during rendering. please use webray at your own risk.
Demo 02
4K @ 512 Samples, 64 Bounces. 20 mins on webray-native
## Editor Documentation

The editor is available [here](https://blazekill.github.io/webray/) along [Demo Scene 01](https://github.com/BLaZeKiLL/webray/blob/main/src/data/demo_01.scene.json) and [Demo Scene 02](https://github.com/BLaZeKiLL/webray/blob/main/src/data/demo_02.scene.json) which can be imported.
### Tools
-
Objects in the current scene
-
Download rendered image
-
Render the current scene as an image
-
Camera Settings
-
Render Settings
-
Materials in the current scene
-
Enter full screen image
-
Exit full screen image
-
Delete item
-
Download scene json file
-
Import scene json file
## WebRay Renderer
Demo 01
HD @ 128 Samples, 32 Bounces. 4secs webray-native
The renderer is implemented in rust and compiled to wasm with the core kernel implemented as a wgsl compute shader using wgpu.