2024-08-22 15:54:03 +02:00

26 lines
615 B
HTML

<!doctype html>
<head>
<style>
body {
background: black;
margin: 0;
}
canvas {
height: 100% !important;
width: 100% !important;
transition: opacity 1s ease-in-out;
}
</style>
</head>
<script type="module">
import {webgpuAdapter} from '@luma.gl/webgpu';
import {webgl2Adapter} from '@luma.gl/webgl';
import {makeAnimationLoop} from '@luma.gl/engine';
import AnimationLoopTemplate from './app.ts';
const animationLoop = makeAnimationLoop(AnimationLoopTemplate, {adapters: [webgpuAdapter, webgl2Adapter]});
animationLoop.start();</script>
<body>
</body>