-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
677 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!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: blending</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; | ||
|
||
/* give the canvas a checked background so we can see visualize blending the WebGPU texture with the canvas' background */ | ||
background-color: #404040; | ||
background-image: | ||
linear-gradient(45deg, #808080 25%, transparent 25%), | ||
linear-gradient(-45deg, #808080 25%, transparent 25%), | ||
linear-gradient(45deg, transparent 75%, #808080 75%), | ||
linear-gradient(-45deg, transparent 75%, #808080 75%); | ||
background-size: 32px 32px; | ||
background-position: 0 0, 0 16px, 16px -16px, -16px 0px; | ||
|
||
} | ||
</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> |
Oops, something went wrong.