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

Stencil Mask Example #413

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d51dc45
Merge pull request #1 from webgpu/main
cmhhelgeson Oct 18, 2023
766427d
Merge pull request #2 from webgpu/main
cmhhelgeson Oct 27, 2023
415bd67
Merge pull request #3 from webgpu/main
cmhhelgeson Oct 31, 2023
ff38128
Merge pull request #4 from webgpu/main
cmhhelgeson Nov 15, 2023
c4f73a1
Merge branch 'main' of https://github.com/cmhhelgeson/webgpu-samples
cmhhelgeson Nov 30, 2023
c5a9982
Merge pull request #5 from webgpu/main
cmhhelgeson Dec 4, 2023
08d811d
Merge branch 'main' of https://github.com/cmhhelgeson/webgpu-samples
cmhhelgeson Dec 4, 2023
1db2e10
Merge branch 'webgpu:main' into main
cmhhelgeson Feb 21, 2024
8bfa289
Merge branch 'webgpu:main' into main
cmhhelgeson Feb 28, 2024
be6a20f
Merge branch 'webgpu:main' into main
cmhhelgeson Feb 29, 2024
e5ee6a9
Merge branch 'webgpu:main' into main
cmhhelgeson Mar 7, 2024
6b19c62
Merge branch 'webgpu:main' into main
cmhhelgeson Mar 12, 2024
74abab8
Merge branch 'webgpu:main' into main
cmhhelgeson Mar 21, 2024
d26ba2b
Merge branch 'main' of https://github.com/cmhhelgeson/webgpu-samples
cmhhelgeson Mar 28, 2024
c145cf3
Merge branch 'main' of https://github.com/cmhhelgeson/webgpu-samples
cmhhelgeson Apr 2, 2024
dbca8ed
Squashed commit of the following:
cmhhelgeson Apr 3, 2024
bfad038
Squashed commit of the following:
cmhhelgeson Apr 3, 2024
0e0522f
Merge branch 'stencil_mask' of https://github.com/cmhhelgeson/webgpu-…
cmhhelgeson Apr 3, 2024
c12e40f
mouse adjustment
cmhhelgeson Apr 3, 2024
6750c54
minor comment addition
cmhhelgeson Apr 3, 2024
a7f9b26
npm run fix
cmhhelgeson Apr 3, 2024
f1ffdce
Removed unused code, modified mask to render into a separate scene, a…
cmhhelgeson Apr 3, 2024
61e2416
Changed fullscreenQuad name to positionQuad to better reflect the sha…
cmhhelgeson Apr 4, 2024
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
30 changes: 30 additions & 0 deletions sample/stencilMask/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>webgpu-samples: stencilMask</title>
<style>
:root {
color-scheme: light dark;
}
html, body {
margin: 0; /* remove default margin */
height: 100%; /* make body fill the browser window */
display: flex;
place-content: center center;
}
canvas {
width: 600px;
height: 600px;
max-width: 100%;
display: block;
}
</style>
<script defer src="main.js" type="module"></script>
<script defer type="module" src="../../js/iframe-helper.js"></script>
</head>
<body>
<canvas></canvas>
</body>
</html>
Loading
Loading