{"name":"troika-three-utils","version":"0.15.6","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":"13acfe60f037e5156d7b29940ea87c66b3e71ead","bugs":{"url":"https://github.com/protectwise/troika/issues"},"homepage":"https://github.com/protectwise/troika#readme","_id":"troika-three-utils@0.15.6","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-zZqz59BC7lvrWJfbTG+vC1HcNRzKBmwpuSzMnZNmd1D2YTg8N7xTpKlGRDNn1UTz4QjdyoWF+Iv5nC+jPsUi6A==","shasum":"3285fd2594bd261c6cdc91f558abcc28b03bb0a1","tarball":"http://registry-npm.ywwl.com/troika-three-utils/download/troika-three-utils-0.15.6.tgz","fileCount":16,"unpackedSize":109026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwyP1CRA9TVsSAnZWagAARaIP/3aO3+aGx2iF7onSlT8W\nbOZtcGm0P8Nsqonh44rM22XsCswhhVj07NYUNN4pVAohK93LK27Wnk3Gm7zd\ncCgRW/hp30sVxGt2jN99uQbPbA/kEVTjoC1gfvPUzbfcY7BPOBGe3/xpDJLe\nTx7s3tspZYsDtWDglJOQQH4MpqUNTsHcKHI+IIWueuhQNoplBLuco4asf2h6\nNo6pK+QU58Od4uM6I7wu7sFeP1R/A29CbJhsuFmZQJcnM4Vl6LuZljR9YjGe\nziuBjhKKfZ8ZEFvU2Ut5yOgv1RlLc5c0+V2eZPvMVWrJR9ZNdkHDt6brlBCy\nGIUhx1M27o4uu/kpvqQSSHm9yq3BO3vZ5fzLBrhsg8NTtkHkeunqnNw/8bXp\nBzI9qwh0a4s4BlCgPDIx2oVa/Hj503e9FuIc4fFuCKpWNWYxkyS+2nf5+yir\n/Zusw1iGtc8fjsDpsduspwxAfkhXckfIAKf05EAATC2dlouweLqYMKfyAxBp\nMbUwxOkWuxLQ2q9ktbnpLaZXECtWgiUJjJF4w1IbOmO889MwFbL1Wqt5mN5b\nsmOhID+1km9PmBgrY1mamNL7m7MLF3bRPSLHnO8Dr9pnKbXtBpKC9lOv+rwS\n6TSiVp+2Tkgtsdr0KhVjmQnpRy2wMguVfnWPonB84I1y5LYUOvWQNDX28WDW\nZbPZ\r\n=Ln5G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAv3033bBFKhJFPkOKLKpBTwAY9I2UYFOT4Si6EhUbQfAiAHe/LqRXDfJ8ymqaTC0sVk4+PExGrF5/h1ZV/mJIFbBQ=="}],"size":24701,"noattachment":false,"key":"/troika-three-utils/-/troika-three-utils-0.15.6.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.15.6_1573069812593_0.4502400912180038"},"_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":1573069812727,"_cnpm_publish_time":1573069812727,"dist-tags":{"latest":"0.53.1"}}