14 lines
450 B
HTML

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