Hey everyone! I’ve been building a WebGPU-based volume raycast engine for the past 8 months and wanted to share it here.
It features full tissue segmentation to reconstruct 3D brain replicas from MRI scans, running at ~100fps on integrated Intel graphics (Core i3 13th Gen).
Technical highlights:
-
Pure WebGPU compute shaders — no Three.js abstractions, built from scratch
-
Parallel reduction loops for volume traversal
-
Tissue segmentation pipeline running entirely on the GPU
Live demo: https://webgpu-mri.vercel.app/
Repo: https://github.com/Bahdmanbabzo/webgpu-mri
Curious how it performs on higher-end GPUs — drop your specs and FPS if you try it! Open to suggestions and contributions.I write technical articles on various low-level GPU optimisation techniques on topics like memory alignment, compute shaders and parallel reduction on my medium, so please check it out and follow if you find it interesting!