mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
26 lines
615 B
HTML
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>
|