Files
filament/samples/web/sandbox.html
Philip Rideout c454a835d1 Web: allow arbitrary file extensions for KTX files.
Sometimes you want your KTX file to end in an extension other than
".ktx".  For example, GitHub Pages applies gzip encoding to bmp files
but not to ktx files (which I think is consistent with nginx defaults).

This change makes it so that a deploy script can rename the files and
apply a simple string transformation to the HTML.
2018-09-21 15:55:00 -07:00

32 lines
751 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', '.ktx')
});
</script>
</body>
</html>