2024-03-06 17:30:47 -05:00

15 lines
509 B
HTML

<!doctype html>
<script type="module">
import {WebGPUDevice} from '@luma.gl/webgpu';
import {WebGLDevice} from '@luma.gl/webgl';
import {luma} from '@luma.gl/core';
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';
luma.registerDevices([WebGPUDevice, WebGLDevice]);
makeAnimationLoop(AnimationLoopTemplate).start({canvas: 'canvas'});
</script>
<body style="margin: 0;">
<canvas id="canvas" style="width: 100vw; height: 100vh;"></canvas>
</body>