Skip to content

NicholasDrian/web_cad

Repository files navigation

web_cad - A Light Weight Geometry Engine For Web Apps


What is It?

web_cad is a geometry engine built on top of WebGPU compute shaders. It is designed to be blazingly fast, light as a feather, and reliable as duct tape. Many of the core features are working, but there is still much to do.

The engine is written in Rust and WGSL, compiled to WASM and SPIR-V, and exposes a js API.

This engines goal is to port all heavy compute to the GPU, and keep all explicit geometry in VRAM. This frees up the RAM and leaves the CPU unblocked, as well as eliminating streaming between RAM and VRAM.

Done:

- Surface Sampler - Curve Sampler - Acceleration Structures

Coming:

- Ray Tracing - Frustum Tracing - Reparameterizing algos - Higher level commands - Materiality - Stable API - Optimization

Examples:

Click HERE to run hello cad

Click HERE to run hello surface

Click HERE to run hello camera

Click HERE to run hello bbh


Click HERE to view dev notes

Please Leave a ⭐

About

A CAD engine targeting modern browsers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages