Files
filament/samples/web/sandbox.html
prideout 63f2fe4ebc Use KTX for envmaps in WebGL demos.
For each envmap/skybox pair, this reduces the number of downloads
from 61 files to 3 files.
2018-09-21 11:54:03 -07:00

32 lines
743 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sandbox</title>
<link href="favicon.png" rel="icon" type="image/x-icon"/>
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1">
<style>
body {
margin: 0;
overflow: hidden;
}
#filament-canvas {
touch-action: none;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<canvas id="filament-canvas"></canvas>
<script src="sandbox.js"></script>
<script src="filaweb.js"></script>
<script>
load({
'mesh': load_rawfile('shaderball/mesh.filamesh'),
'pillars_2k': load_cubemap('pillars_2k')
});
</script>
</body>
</html>