Files
filament/samples/web/suzanne.html
Romain Guy 4002498438 Add new HDR environment maps in third_party (#182)
These are much better than the ones we had in assets/
2018-08-29 14:22:58 -07:00

29 lines
915 B
HTML

<!DOCTYPE html>
<title>Filament</title>
<link href="favicon.png" rel="icon" type="image/x-icon"/>
<meta name=viewport content='width=device-width,initial-scale=1'>
<style>
body {
margin: 0;
overflow: hidden;
}
#filament-canvas {
width: 100vw;
height: 100vh;
}
</style>
<canvas id="filament-canvas"></canvas>
<script src="suzanne.js"></script>
<script src="filaweb.js"></script>
<script>
load({
'albedo': load_texture('monkey/albedo.png'),
'metallic': load_texture('monkey/metallic.png'),
'roughness': load_texture('monkey/roughness.png'),
'normal': load_texture('monkey/normal.png'),
'ao': load_texture('monkey/ao.png'),
'mesh': load_rawfile('monkey/mesh.filamesh'),
'syferfontein_18d_clear_2k': load_cubemap('syferfontein_18d_clear_2k/', 9)
});
</script>