/head>
<body>
<canvas id="canvas"></canvas>
</body>
</html>
<script type="module">
import GUI from '../../../3rdparty/muigui-0.x.module.js';
import * as twgl from '../../../3rdparty/twgl-full.module.js';
import * as diagram from './diagram.js';
import { rgb, hsl } from './utils.js';
const { v3 } = twgl;

function main() {
  const opt = getQueryParams();
  const lang = {
    dot: opt.dot || 'dot(eyeToSurfaceDir,surfaceNormal)',
    surfaceNormal: opt.surfaceNormal || 'surface normal',
  };
  const ctx = docu