{"name":"troika-three-utils","version":"0.16.0","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:es2015":"src/index.js","gitHead":"b17e3967b2166f102cabc6cd4bf46f5a725a8910","bugs":{"url":"https://github.com/protectwise/troika/issues"},"homepage":"https://github.com/protectwise/troika#readme","_id":"troika-three-utils@0.16.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.18.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-zot67ZFCSYByHvPEXI6Np1rCLjy541cN/lE7wFLr6ZrMRFOcMjLLUXp33kqhL9Q9jkC7QIYCCjNFKHIJed/vBA==","shasum":"8b5b3da165dc07197e7c1f928c60dcdc90bfeeac","tarball":"http://registry-npm.ywwl.com/troika-three-utils/download/troika-three-utils-0.16.0.tgz","fileCount":16,"unpackedSize":109108,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHz1LCRA9TVsSAnZWagAA5AQP/RZncbRJpCtNO8tvMos+\nFbGGauk/JiaCb94irFFJ/GWrR7gv3Zm7DUV/n+14EPvCOQMuyR5LhBtrkFBl\nLCDTWvcX8unmFe/YhmARQ/R8SU+08zLdCWFRMdifgTAGZbx4UbCbVDbQYmqh\n4+c62Ude/yNlaecw6OL8A49FBMJUeRYwq4N8Gt/24NbafUiN3X2T8LMS6qO+\nbMyKMRXS3TEK61EvQjMxrAPJTP5c7O+v4/EWdHubV1bocGbL8r9QrT6gr48a\nawg4uulefZ3k1qxp3cm9xEPQylbzFzA0mqM+ZqOCD146N9c9vkm6HLXObd7V\nWINw8Ewpnz+DTuU7B1OZ3RdvO5GewAJ4rtHw8PV2IFmGo7qUpaHkiXsJHrjv\n5IpfniKYAJ1gv1zHec8gLqNlS1YXMfako8ASir0ka4Z1RNmg3IHtUY21ps1Y\nwc+1Q7xvfabILqFaaDT4TZppsdzjdVmd1KWEnPAF8c4cecGGD6L+ygOdGKEh\npEQfNhXClG8W3unOKgTi6krupel0iA8bcGhIAN5O1Sw7F9rxbjGhyQKT9WMi\nZwHhnnfhErws13ipLkGE34YgJC9egwuerNmMOjBJWafWNjcCv++5bysyqmo4\nUPEVn6nRHu5G8XMjm9ntEpOtRTYnZCPRaglzMBfPePswHeVBkqyEqkMK1U9V\nL35N\r\n=uVG6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfgHHUtPl4Xs/dT0jAM5o17SETdnD7EpJWCtIYPQ49bgIhAKfAjDPF6J5UWd+aO0VEN9kYjk/IUA9jV0yOjbYkZJSb"}],"size":24719,"noattachment":false,"key":"/troika-three-utils/-/troika-three-utils-0.16.0.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.16.0_1579105611224_0.4686957154883098"},"_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":1579105611347,"_cnpm_publish_time":1579105611347,"dist-tags":{"latest":"0.53.1"}}