Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Marching Cubes external sample. #457

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading