geo-ambient-occlusion
Version:
GPU-accelerated per-vertex ambient occlusion generator built on top of regl.
47 lines (35 loc) • 647 B
HTML
<html>
<head>
<script src='bundle.js' defer></script>
</head>
<style>
body {
margin: 0px;
}
#render-canvas {
width: 100%;
height: 100%;
}
#fraction {
position: fixed;
top: 0px;
left: 0px;
height: 8px;
width: 0%;
background: #0088FF;
}
#fraction-label {
position: fixed;
top: 32px;
left: 0px;
width: 100%;
text-align: center;
font: sans;
}
</style>
<body>
<canvas id='render-canvas'></canvas>
<div id='fraction'></div>
<div id='fraction-label'>Loading mesh data...</div>
</body>
</html>