Releases: hmans/composer-suite
Releases · hmans/composer-suite
[email protected]
[email protected]
[email protected]
Patch Changes
-
6fbe89d: Breaking Change: The
maxParticles
prop ofParticles
and<Particles>
has been renamed tocapacity
. Also,safetyBuffer
has been renamed tosafetyCapacity
, and will now default to 10% of the capacity unless specified otherwise. (Fixes #172) -
020971e: The
rate
prop of<Emitter>
can now be set to a function that returns a rate. Useful for changing the rate based on time (or other outside factors.)const clock = useThree((s) => s.clock) <Emitter rate={() => 50 + Math.sin(clock.elapsedTime * 2) * 30} setup={({ position }) => { /* ... */ }} />
-
Updated dependencies [6fbe89d]
[email protected]
Patch Changes
- 8ca879b:
<Emitter>
now automatically resets when it detects a change in the particle system's material. (Useful for HMR.) - a9a91ed:
<Particles>
will now automatically re-setup the particles buffers when the mesh's material changes. - Updated dependencies [8ca879b]
- Updated dependencies [8ca879b]
- Updated dependencies [82ad766]
[email protected]
Patch Changes
- 8ca879b: New unit:
Negate(v)
. Returns the negated value ofv
. Equivalent tov * -1
. - 8ca879b: Added the
GlobalTime
unit, which is a library-provided instance ofTime()
that can be used anywhere where a time value is needed, but the absolute value of the time is not important. Useful for synchronizing effects, and as a fallback default value for your own unit implementations that allow the user to pass in a time value. - 82ad766: When reusing a unit across multiple shaders/materials, it was possible to unintentionally call the unit's
update
callback more than once per frame (a clasically horrible thing for anyTime
uniform units re-used across multiple materials, ouch!). This is now fixed; we now make sure that a unit'supdate
callback is only ever called once per frame, not matter how often the unit is used. (Fixes #220)
[email protected]
[email protected]
Patch Changes
- 03215af: Upgraded
Color
module with documentation and the ability to take a function as itscolor
argument. - 8ca879b:
Alpha
has always acceptedInput<"float">
values for itsalpha
prop, and now it also alternatively accepts a function that gets the current alpha passed into it as its only argument. This allows you to modify the existing alpha value with this module, instead of simply overwriting it. - Updated dependencies [8ca879b]
- Updated dependencies [8ca879b]
- Updated dependencies [82ad766]
[email protected]
[email protected]
Patch Changes
- 004bd19: Add
three-stdlib
to silence the peer dependency warnings triggered byr3f-perf
.
[email protected]
Minor Changes
- 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.
- ea13985: Breaking Change: Upgrade to the latest Shader Composer and Material Composer. Lots of new APIs! Aaaah! Please refer to the examples for guidance.
- 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. - f8b4c05: Changed: A complete refactoring around a new imperative/vanilla core. Enjoy!
- dc04f03:
VFXMaterial
and the animation modules have been extracted into a new package, Material Composer, that this library now uses as a dependency. - c09304e: All the react-three-fiber specific bits that were formerly available at
vfx-composer/fiber
now live in a separatevfx-composer-r3f
package.