{"name":"troika-three-utils","version":"0.20.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:src":"src/index.js","gitHead":"c97a9f97c30cd4ddfba068430d02d7c0a73c2e08","bugs":{"url":"https://github.com/protectwise/troika/issues"},"homepage":"https://github.com/protectwise/troika#readme","_id":"troika-three-utils@0.20.0","_nodeVersion":"12.4.0","_npmVersion":"lerna/3.18.4/node@v12.4.0+x64 (darwin)","dist":{"integrity":"sha512-ajKTmoDfcPmE5BOM+ozxMzIVDydgBZJvMR4YH5d8agNmphhILYBj88mMwexjZeE8yn1hEqGhqUX68b2tR9fYkA==","shasum":"96521b949459f26470db543c428bc011fec955cd","tarball":"http://registry-npm.ywwl.com/troika-three-utils/download/troika-three-utils-0.20.0.tgz","fileCount":17,"unpackedSize":112022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecA5gCRA9TVsSAnZWagAAFOMP/RcyJBqC71bZ/Iklr476\n6azJDL97mtRKJIzGrWw+M+TpMQmoOoRS8tKzbRzggRwEVXDCTz+bn74EWHb6\nvmcTFdZi6ODJ5mXuXuLDkNEAV55nAtU2EBgQ4tyNwdoFMDJnkwmEBVCcouLZ\nol0eSWRLJ+AeAfTltz0DA+3Tc9tyibHah/w7pXDZd/GNLfud54f16agKMcMz\nBHT7UZB0bG0l5Z0fI3VKuC1CssJf0ALylSL1GbgudmCHDkmOYYugQbTRZ4Yj\n62KA+ajPmP1lK9BBNLO9NS0tF9dByV7pn9kxmz1JmbLnUwHZRbBprfrs9Qwo\nJln4PbUKvresR8OIlWArjsUVQEOI19SRoNT11FMQ58voo2gC2uZrrUX/FyEp\nr+zqJDLkz1nc3f3xLXmMuoq42tjHEeyE0aXHkI5awMjNMs9qDAeLSWg++bHm\nEJzR1rO3LY7DsqJ3XFwWsULrVbPdOngB6Mi0C4lnzOpYgIng9QQVW/3/xUKD\n1iI8B71S63WgRpOEAyCJCE3+zUoLaXA3V9/T2uZBDz/hjwPOjG9UdDJTi3DC\nmwqaSdCz5oRF/Ph1d177D7SvHGVFdIAR4uFAwz/dZCzIs29RN1KXvAQ4Q43j\nIhTuw+emhwc+jLPBUTbuKi+sQuCcK/zy+c8DKChCdCloN/DsSh4YgpExszjL\nrfoH\r\n=m3jj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHellrbWSzoxKnhylrU0maJ9W4xls0ybUURRKWThcLeHAiEA0MU9ILHPWiY7V0pBOp1COuSVuuypGH2XAGgrECRi3pQ="}],"size":23090,"noattachment":false,"key":"/troika-three-utils/-/troika-three-utils-0.20.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.20.0_1584402016514_0.48089356198817446"},"_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":1584402016644,"_cnpm_publish_time":1584402016644,"dist-tags":{"latest":"0.53.1"}}