regl-camera-ts
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

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();
  });
});

Readme

Keywords

Package Sidebar

Install

npm i regl-camera-ts

Weekly Downloads

1

Version

0.1.10

License

MIT

Unpacked Size

167 kB

Total Files

30

Last publish

Collaborators

  • ahaoboy