webgl-demo use canvas as background layer
This commit is contained in:
parent
5bc7c97791
commit
078f36b174
2 changed files with 10 additions and 1 deletions
8
www/shader-style.css
Normal file
8
www/shader-style.css
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.gl-canvas-bg {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
|
@ -10,9 +10,10 @@
|
|||
crossorigin="anonymous"
|
||||
defer></script>
|
||||
<script src="webgl-demo.js" type="module"></script>
|
||||
<link rel="stylesheet" href="shader-style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<canvas id="gl-canvas" width="640" height="480"></canvas>
|
||||
<canvas class="gl-canvas-bg" id="gl-canvas"></canvas>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue