{"name":"troika-three-utils","version":"0.28.1","description":"Various utilities related to Three.js","author":{"name":"Jason Johnston","email":"jason.johnston@protectwise.com"},"repository":{"type":"git","url":"git+https://github.com/protectwise/troika.git","directory":"packages/troika-three-utils"},"license":"MIT","main":"dist/troika-three-utils.umd.js","browser":"dist/troika-three-utils.umd.js","jsnext:main":"dist/troika-three-utils.esm.js","module":"dist/troika-three-utils.esm.js","module:src":"src/index.js","gitHead":"96b3c36ff397b784d58a85c3ab29abae0f19bff3","bugs":{"url":"https://github.com/protectwise/troika/issues"},"homepage":"https://github.com/protectwise/troika#readme","_id":"troika-three-utils@0.28.1","_nodeVersion":"12.16.1","_npmVersion":"lerna/3.20.2/node@v12.16.1+x64 (darwin)","dist":{"integrity":"sha512-tzKVklP2W2oOEohumOGmkW8lds4dIQZJJoVUgKmb4oZ/QAI4i7o3pHyNRsLokJEVpFzv45ozSoaWiCqnzDEL7w==","shasum":"8ce9b17c82c79bd6dde9756338003868142d018a","tarball":"http://registry-npm.ywwl.com/troika-three-utils/download/troika-three-utils-0.28.1.tgz","fileCount":17,"unpackedSize":125273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6mn2CRA9TVsSAnZWagAAv9MP/2bRUYVo0miH+PBY5m1j\n7ahXiJ52tR7EhV1b8/6nSeGeBr6Q3w/ld+ciZxn+si+qgz2rJTdlU8FFwA1F\n9dJLJA06Js/7HH3/1CdKRQ+ClfqW3HzkpDkaZUJtiWQw7LSYlNqgfbY1kZkA\nwWaQJxTiEh93ma+R1GC01xqcwbalShvOPEmjb/fDuMeau5iYAZOEMYl56mIq\niX9li304nsJaLtYb6p/oSMTgvh6aJqzcmuh8D9/ppbek1AsWbj2wKwH2Cz8A\nRmANKPQBpto5E85AqkUMDMT5WT/pGhVho6Nc0ucsgjfmg8s4eSF/skny4w1d\n/qI6i8xz09CBaT9LNfI+4HESYdjFc25nxe3Mqtt3eSQxOWaX4LepqsTizMgH\nebPNpcnbi/ssNj5wBEFvpWYV0l06CIOx2iImc7Yclx3Zpwrh9d/i64hurHSf\nUptsKOHFm27/qfTH1VLa/+j1u1I82Sm4UDZDKi7TlqcLn3u4H/lbXFg36T4t\nBnZu1D4fitoF5tcluCtVLdH7WGgd8xYbQ4ahL31X7YPNErs28tNlCU70vPk/\nZYR6gGOGpjOZIkMg5u6TRx1PXvMRgU4jWekCwoO2iZfY1Zm7k9ubsmfvpnJU\n59Cd3AmTGhTjsS58dacCzJTAWK9TM66geKileZez5WFHM27XeXGSUJbKJWC8\nuYQR\r\n=iyDA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP5jHy6lEhE+PpMRN+ZMfTbAO+/6sAn6fQejZbgsvR7AIhAKsce5p12iQzzB5QEeeEkfLsjlo9obV9/XFSHUc4HMTj"}],"size":35022,"noattachment":false,"key":"/troika-three-utils/-/troika-three-utils-0.28.1.tgz"},"maintainers":[{"name":"lojjic","email":"jason+npm@lojjic.com"}],"_npmUser":{"name":"lojjic","email":"jason+npm@lojjic.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/troika-three-utils_0.28.1_1592420853696_0.6302836210747327"},"_hasShrinkwrap":false,"readme":"# Troika Three.js Utilities\n\nThis package provides various utilities for working with [Three.js](https://github.com/mrdoob/three.js), particularly having to do with shaders. It is used by [Troika 3D](../troika-3d), but has no dependencies itself other than Three.js, so it can be used outside the Troika framework.\n\n\n## Installation\n\nGet it from [NPM](https://www.npmjs.com/package/troika-three-utils):\n\n```sh\nnpm install troika-three-utils\n```\n\nYou will also need to install a compatible version of [Three.js](https://threejs.org); see the [notes on Three.js versions in the Getting Started docs](../../docs/getting-started/setup.md#threejs) for details.\n\n```sh\nnpm install three\n```\n\n\n## Provided Utilities\n\nSeveral utilities are provided; for a full list follow the imports in [index.js](./src/index.js) to their source files, where each is documented in JSDoc comments.\n\nSome of the most useful ones are:\n\n\n### createDerivedMaterial()\n\nThis utility allows you to easily _extend_ existing Three.js materials with your own custom shader code. This is an incredibly powerful tool, and is the  secret behind most of Troika's shader-driven tools like `troika-three-text`, `three-instanced-uniforms-mesh`, and `BezierMesh`. \n\nSee the [createDerivedMaterial documentation page](./docs/createDerivedMaterial.md) and its [source code with JSDoc](./src/DerivedMaterial.js) for details.\n\n\n### BezierMesh\n\nThis creates a cylindrical mesh and bends it along a 3D cubic bezier path between two points, in a custom derived vertex shader. This is useful for visually connecting objects in 3D space with a line that has thickness to it.\n\nSee the [BezierMesh documentation page](./docs/BezierMesh.md) and its [source code with JSDoc](./src/BezierMesh.js) for details.\n\n\n### InstancedUniformsMesh\n\n> NOTE: InstancedUniformsMesh has been moved to [its own `three-instanced-uniforms-mesh` package](https://github.com/protectwise/troika/tree/master/packages/three-instanced-uniforms-mesh).\n","publish_time":1592420853847,"_cnpm_publish_time":1592420853847,"dist-tags":{"latest":"0.53.1"}}