Skip to content

Commit

Permalink
idk man im just spitballing
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiritAxolotl committed Nov 30, 2023
1 parent 4378429 commit fb16e6c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/glitch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@
<body style="background-color: black;">
<canvas
id="glitch-shader"
width="100%"
height="100%"
style="
width: 100%;
height: 100%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
"
></canvas>
<script>
const canvas = document.getElementById("glitch-shader");
const width = canvas.clientWidth;
const height = canvas.clientHeight;
if (canvas.width !== width || canvas.height !== height) {
canvas.width = width;
canvas.height = height;
}
</script>
<script async type="module">
import { SimpleShader as Shader } from "/js/simple-shader.js";
import * as frags from "/tests/frags.glsl.js";
Expand Down

0 comments on commit fb16e6c

Please sign in to comment.