Skip to content

Commit

Permalink
Merge pull request #46 from jerzakm/package-changes
Browse files Browse the repository at this point in the history
Rearrange package.json deps. Docs updates
  • Loading branch information
jerzakm committed Apr 13, 2024
2 parents 5c4b28a + 437b867 commit 39f2019
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-masks-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@threejs-kit/instanced-sprite-mesh': patch
---

update package.json, move dependencies from peer&dev to dependencies
2 changes: 2 additions & 0 deletions apps/docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ hero:

[Demo](https://threejs-kit-playground.vercel.app/instanced-sprite-ts)

[Bunny-mark](https://threejs-kit-playground.vercel.app/instanced-sprite-bunny-mark?count=50000&mode=bunnies)

</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import { Image } from "astro:assets";

`InstancedSpriteMesh` was created to enabled high performant instancing of animated sprites in threejs. Current solutions do not fare well with very high instance counts. This package aims to resolve that, boasting the capability to render tens of thousands individually animated sprites even on low/medium power devices.

**Example**: [Live](https://threejs-kit-playground.vercel.app/instanced-sprite-ts) [Code](https://github.com/jerzakm/threejs-kit/tree/main/apps/playground/src/routes/instanced-sprite-ts)
**Example Scene**: [Live](https://threejs-kit-playground.vercel.app/instanced-sprite-ts) [Code](https://github.com/jerzakm/threejs-kit/tree/main/apps/playground/src/routes/instanced-sprite-ts)

**Bunny-mark**: [Live](https://threejs-kit-playground.vercel.app/instanced-sprite-bunny-mark?count=50000&mode=bunnies) [Code](https://github.com/jerzakm/threejs-kit/tree/main/apps/playground/src/routes/instanced-sprite-bunny-mark)

**Threlte component**: [InstancedSprite docs](https://threlte.xyz/docs/reference/extras/instanced-sprite)

## Installation

Expand Down
8 changes: 4 additions & 4 deletions packages/instanced-sprite-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
},
"devDependencies": {
"@types/three": "^0.158.2",
"troika-three-utils": "^0.49.0",
"tsc-watch": "^6.0.4",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-dts": "^3.6.3"
},
"peerDependencies": {
"three": ">=0.151.0",
"three-instanced-uniforms-mesh": "^0.49.0"
"three": ">=0.151.0"
},
"publishConfig": {
"access": "public"
Expand All @@ -43,6 +41,8 @@
"dependencies": {
"diet-sprite": "^0.0.1",
"earcut": "^2.2.4",
"maath": "^0.10.7"
"maath": "^0.10.7",
"three-instanced-uniforms-mesh": "^0.49.0",
"troika-three-utils": "^0.49.0"
}
}
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39f2019

Please sign in to comment.