Skip to content

Commit 8fcda35

Browse files
Version Packages (#183)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 669f8d7 commit 8fcda35

17 files changed

+296
-478
lines changed

.changeset/chatty-avocados-accept.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/four-pumpkins-own.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/hot-laws-scream.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/perfect-weeks-beam.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/plenty-countries-taste.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pre.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

.changeset/rude-papayas-shake.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/silent-plants-shout.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/strong-bikes-bathe.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/swift-wasps-fix.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/twenty-bees-jump.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

apps/examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"three": "^0.143.0",
3131
"three-stdlib": "^2.14.3",
3232
"timeline-composer": "^0.1.5",
33-
"vfx-composer": "^0.2.0-next.4",
34-
"vfx-composer-r3f": "^0.2.0-next.4",
33+
"vfx-composer": "^0.2.0",
34+
"vfx-composer-r3f": "^0.2.0",
3535
"wouter": "^2.8.0-alpha.2"
3636
},
3737
"devDependencies": {

packages/vfx-composer-r3f/CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
# vfx-composer-r3f
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- 85f851f: **Breaking Change:** `<Emitter>` received a big overhaul and now supports `rate` and `limit` props, next to the `setup` callback prop that was already there. Together with the helper components from Timeline Composer, this should now allow for all typical particle emission workloads.
8+
- ea13985: **Breaking Change:** Upgrade to the latest Shader Composer and Material Composer. Lots of new APIs! Aaaah! Please refer to the examples for guidance.
9+
- dc04f03: `VFXMaterial` and the animation modules have been extracted into a new package, **Material Composer**, that this library now uses as a dependency.
10+
- c09304e: All the react-three-fiber specific bits that were formerly available at `vfx-composer/fiber` now live in a separate `vfx-composer-r3f` package.
11+
- a11c4b7: Added `useParticles`, a high-level hook that will set up the most important variables needed for typical particle systems.
12+
13+
Added `useParticleAttribute`, a simple hook to quickly create a memoized particle attribute.
14+
15+
A typical (minimal) particles effect now looks like this:
16+
17+
```tsx
18+
const Effect = () => {
19+
const particles = useParticles()
20+
const velocity = useParticleAttribute(() => new Vector3())
21+
22+
return (
23+
<Particles maxParticles={1_000} safetyBuffer={1_000}>
24+
<planeGeometry args={[0.2, 0.2]} />
25+
26+
<composable.MeshStandardMaterial>
27+
<modules.Billboard />
28+
<modules.Scale scale={OneMinus(particles.Progress)} />
29+
<modules.Velocity velocity={velocity} time={particles.Age} />
30+
<modules.Lifetime {...particles} />
31+
</composable.MeshStandardMaterial>
32+
33+
<Emitter
34+
rate={20}
35+
setup={() => {
36+
particles.setLifetime(between(1, 3))
37+
velocity.value.set(plusMinus(1), between(1, 3), plusMinus(1))
38+
}}
39+
/>
40+
</Particles>
41+
)
42+
}
43+
```
44+
45+
### Patch Changes
46+
47+
- Updated dependencies [c4ef849]
48+
- Updated dependencies [2d867ec]
49+
- Updated dependencies [ea13985]
50+
- Updated dependencies [cd19781]
51+
- Updated dependencies [f8b4c05]
52+
- Updated dependencies [dc04f03]
53+
- Updated dependencies [bfd1588]
54+
- Updated dependencies [c09304e]
55+
56+
357
## 0.2.0-next.4
458

559
### Minor Changes

packages/vfx-composer-r3f/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://hendrik.mans.de"
77
},
88
"description": "React-Three-Fiber bindings for VFX Composer.",
9-
"version": "0.2.0-next.4",
9+
"version": "0.2.0",
1010
"main": "dist/vfx-composer-r3f.cjs.js",
1111
"module": "dist/vfx-composer-r3f.esm.js",
1212
"files": [
@@ -29,7 +29,7 @@
2929
"material-composer-r3f": "^0.1.1",
3030
"shader-composer": "0.3.3",
3131
"shader-composer-r3f": "0.2.0",
32-
"vfx-composer": "^0.2.0-next.4"
32+
"vfx-composer": "^0.2.0"
3333
},
3434
"peerDependencies": {
3535
"@react-three/fiber": ">=8.0.27",

packages/vfx-composer/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# vfx-composer
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- c4ef849: **Added:** Partial attribute buffer uploads! Now only the parts of the buffers that have been used for newly spawned particles are actually uploaded to the GPU.
8+
- ea13985: **Breaking Change:** Upgrade to the latest Shader Composer and Material Composer. Lots of new APIs! Aaaah! Please refer to the examples for guidance.
9+
- cd19781: **Changed:** `<Emitter>` now applies its world transform to spawned particles, meaning you can parent it to other scene objects for easy-peasy particle trails.
10+
- f8b4c05: **Changed:** A complete refactoring around a new imperative/vanilla core. Enjoy!
11+
- dc04f03: `VFXMaterial` and the animation modules have been extracted into a new package, **Material Composer**, that this library now uses as a dependency.
12+
- c09304e: All the react-three-fiber specific bits that were formerly available at `vfx-composer/fiber` now live in a separate `vfx-composer-r3f` package.
13+
14+
### Patch Changes
15+
16+
- 2d867ec: **Added:** `<Emitter>` will now retrieve the parent `<Particles>` via context if none is specified explicitly.
17+
- bfd1588: **Fixed:** `<Emitter>` could no longer work with `<Particles>` refs passed into its `particles` prop. Woops!
18+
319
## 0.2.0-next.4
420

521
### Minor Changes

packages/vfx-composer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://hendrik.mans.de"
77
},
88
"description": "Composable, GPU-driven Visual Effects for Three.js and React-Three-Fiber.",
9-
"version": "0.2.0-next.4",
9+
"version": "0.2.0",
1010
"main": "dist/vfx-composer.cjs.js",
1111
"module": "dist/vfx-composer.esm.js",
1212
"files": [

0 commit comments

Comments
 (0)