From d6b3dbe843a343ea0a50c6cfc06df3f344b377b7 Mon Sep 17 00:00:00 2001 From: Thibault Coppex Date: Mon, 7 Oct 2024 18:08:14 +0200 Subject: [PATCH] Add marchingCubes sample --- sample/marchingCubes/meta.ts | 10 ++++++++++ src/samples.ts | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 sample/marchingCubes/meta.ts diff --git a/sample/marchingCubes/meta.ts b/sample/marchingCubes/meta.ts new file mode 100644 index 00000000..9ef87886 --- /dev/null +++ b/sample/marchingCubes/meta.ts @@ -0,0 +1,10 @@ +export default { + name: 'Marching Cubes', + description: `This example demonstrates how to dynamically generate procedural meshes using a signed distance field and a multi-pass marching cubes algorithm on the GPU. + +Source at +`, + filename: __DIRNAME__, + url: 'https://tcoppex.github.io/webgpu-marchingcubes/', + sources: [], +}; diff --git a/src/samples.ts b/src/samples.ts index d3727dc4..3c5d390c 100644 --- a/src/samples.ts +++ b/src/samples.ts @@ -15,6 +15,7 @@ import helloTriangle from '../sample/helloTriangle/meta'; import helloTriangleMSAA from '../sample/helloTriangleMSAA/meta'; import imageBlur from '../sample/imageBlur/meta'; import instancedCube from '../sample/instancedCube/meta'; +import marchingCubes from '../sample/marchingCubes/meta'; import metaballs from '../sample/metaballs/meta'; import multipleCanvases from '../sample/multipleCanvases/meta'; import normalMap from '../sample/normalMap/meta'; @@ -159,6 +160,7 @@ export const pageCategories: PageCategory[] = [ pristineGrid, clusteredShading, spookyball, + marchingCubes, }, },