{"name":"troika-three-utils","version":"0.17.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":"0708fdbb59d0073095124b1ac669bbe84fc640e9","bugs":{"url":"https://github.com/protectwise/troika/issues"},"homepage":"https://github.com/protectwise/troika#readme","_id":"troika-three-utils@0.17.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.18.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-A46b6/1ZZu7qNnN3379oDqYQkMoOf0GF2Iz4nRfHPUQqDPOM37Uo3sCqPjvOksGBC3jBAjjSrHFESmYkD9Kkwg==","shasum":"e5bd68208ceadb7c234cb9c2a9436eb8d16a9bb4","tarball":"http://registry-npm.ywwl.com/troika-three-utils/download/troika-three-utils-0.17.1.tgz","fileCount":16,"unpackedSize":111390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSwv6CRA9TVsSAnZWagAA96gP/0DuYy06NT5nxwJZRWia\nNhjc9ub9U3d+4e4P8kfzM3SMFAwqoBReE0pufHr9791mdxPEIpX2jSqvE6MC\nbfFPKMXHo42bPyKka5odJ5tCP9ucXAqbI5UEYFXDb5qOfi+GBd9kEhND5CMI\ne7SlYuWezaXrQdsf9NKLLC+oLLHVIrfl2voeZvSSxVqlbqQwh7J2dvL21b+A\nu+TWJIvf3gV4Vf5vNuWxZf5R50dvE/ixPXYDNBXz7HRnNHAxdgxfyf91GgRK\nE+pzIT8UQHd8uvGi+xq5wXaU7Onq8IPoxupOLis1/j78KdMWjx+F8kJymVtj\n4Fpc9rR8kAGN5Qenwv8+mwxFiEsCCGRsIZqrl9y9IfqzRU39iaCsP398cQcZ\ny68pJb2mItbTUwDFXiAXDEHvxcvwq3qXX7lX4GJbdDyKCfhVMg1/HaYcUD7S\nFtbbtbCrRL5h4v1pf7T0qOWVLn569M6ncxzUhBY0Tchdn4jqrsQyGev3xVM2\n4nXs8pRdOPiCcFk2xltzgQ6oCCn0x8tXSPqn7kZkCrcxugCAojWmz06FWC6/\nQx+N0fcxoB1v2odnLCKXQ9lmiqxuAMeY+Q8n+gjpv3AY6DofHFPV9leyN8uJ\nSmsRCzc6N8i/Z13yFPcb86oXYSTEAoVEgvuDb82NpEBSKzlZiI+ZJ9FKOImw\nZzUg\r\n=sj7B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhw6ivgSg37Vi871Q1m10b+xyUDe4TSSHFN1cy5CrWqAiBWVU9AOgOK72scK2lUXpVVboEUhWRY0iC4Kf/FEOiIzw=="}],"size":22859,"noattachment":false,"key":"/troika-three-utils/-/troika-three-utils-0.17.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.17.1_1581976570359_0.27159531571938045"},"_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":1581976570465,"_cnpm_publish_time":1581976570465,"dist-tags":{"latest":"0.53.1"}}