{"name":"troika-three-utils","version":"0.30.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":"c0f9b92173bec5d61860d45d3e1dbf76cfda1fb9","bugs":{"url":"https://github.com/protectwise/troika/issues"},"homepage":"https://github.com/protectwise/troika#readme","_id":"troika-three-utils@0.30.0","_nodeVersion":"12.16.1","_npmVersion":"lerna/3.22.1/node@v12.16.1+x64 (darwin)","dist":{"integrity":"sha512-ZXTLb3tSCxbJEQyz4hwxYOx/Hrg9rzTrDSqGCmUTRXyOMOtZxrFeHTLBh2kblIb7JfhMUofj9vtRfIjt1UYYQA==","shasum":"5e118ee68afbe63b31c3e7bf4d509499e036a64f","tarball":"http://registry-npm.ywwl.com/troika-three-utils/download/troika-three-utils-0.30.0.tgz","fileCount":17,"unpackedSize":125752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfELlRCRA9TVsSAnZWagAAq40P/2lmeyS+PRK2o+V4FqMN\nEsnioKtCdj8ly+y+zO4DRXrOU3hWkVdTxs6RU4cwY205rZnFe0tdzFnmVeo3\nLfUJGG5RqP2PQT20dSJitUeQnHAx38DWasHn+cabKrMbVpHTmKYGiTrRAsKv\nU370UtH90bnbkL2B8ugd5c6SjOV70vmv13qgxJjo4Kzx1QwoQcwrxsaW9v5D\nNsqV4150xW1lWgz1fH12A6MNnhA1JcaYB1D4CXgaNE0P97GnuRb73mNl/4RQ\nYF998a3Ppzu4PyXFI9EQDL/I3bOtB2YIgItZ8a5+jnUmEFB1AxpOI/6SgXN1\neWA1zI2PJXM3/6Z4aYvSmL/xnFVqilKJ8PQk3pHKOQ4Rgm3AVlGO7dB8lAJo\n7NGS1DlLHM5Icn9O9Q/kavHjou+5+fR3wSHjxCeLj+aHcCGQzrMLs0+umpF8\nHcpj09MkbU+9VP9mMr/iY5o12Cj6NsO1ctoUY06cRv/PVfKE/nGwPJQetT42\nRr0L9oFshsHX1nz8H1xsHARcxWyeYOdjYsnor3VIplCMwXIlitKEUp448bm0\nAqy7xX/6Ewad6svasJcAvtauEx447inZXS88gxcMa38GbDckicFu7kU1XsSK\nhNzbvmfJkKmxG0dvxs94YdB+y0YlCXJ5UbsMLTHAYg2HIy3+Nw3KfDs9MtHL\nUGxb\r\n=6jf7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnY2MSbfBAO2RxiL4+drPrOR5YmA8gcPiR/v9mf+SfCAiEAqQkRyQuTJRU+YAh8H2KN14WzWvVvS8h4DaXVY4aLbUE="}],"size":35205,"noattachment":false,"key":"/troika-three-utils/-/troika-three-utils-0.30.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.30.0_1594931536471_0.8044578254235621"},"_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":1594931537089,"_cnpm_publish_time":1594931537089,"dist-tags":{"latest":"0.53.1"}}