Skip to content

Commit

Permalink
Add marchingCubes sample (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoppex authored Oct 11, 2024
1 parent 3c9b66b commit aa492b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sample/marchingCubes/meta.ts
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/tcoppex/webgpu-marchingcubes>
`,
filename: __DIRNAME__,
url: 'https://tcoppex.github.io/webgpu-marchingcubes/',
sources: [],
};
2 changes: 2 additions & 0 deletions src/samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -159,6 +160,7 @@ export const pageCategories: PageCategory[] = [
pristineGrid,
clusteredShading,
spookyball,
marchingCubes,
},
},

Expand Down

0 comments on commit aa492b6

Please sign in to comment.