regl-camera-ts

fork from regl-camera

Usage no npm install needed!

<script type="module">
  import reglCameraTs from 'https://cdn.skypack.dev/regl-camera-ts';
</script>

README

BETA

fork from regl-camera

doc

yarn add regl-camera-ts

import createCamera from "regl-camera-ts";

const camera = createCamera(regl, {
    center: [0, 0, 0],
    theta: Math.PI / 2,
});

regl.frame(() => {
  regl.clear({
    color: [0, 0, 0, 1],
  });
  camera(() => {
    drawCommand();
  });
});