You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to make this library usable from vanilla React. A couple of notes/ideas/etc.:
Currently, the only effect runner, <MeshParticles>, is implemented as a React component, assuming react-three-fiber. In feat: Composable Shaders #11, this component will probably undergo heavy refactoring. It would be a good opportunity to refactor the relevant code into a normal MeshParticles class that inherits from InstancedMesh. This class could then still be exposed to React via extend (or a normal component.)
For materials, we're using three-custom-shader-material, which already lets you use its functionality imperatively, so there's probably nothing we need to do here.
<Emitter> very conveniently is only a very thin wrapper around the spawnParticles function, which can also be called imperatively. There is probably no need to provide a vanilla equivalent to this React component.
The library currently contains a lot of React niceties for declaratively creating animation waterfalls through the <Delay>, <Repeat> and <Lifetime> components. It should not be a goal to replicate these for imperative use. When using this library imperatively, users will most likely have their own animation primitives they can use.
The text was updated successfully, but these errors were encountered:
It would be nice to make this library usable from vanilla React. A couple of notes/ideas/etc.:
<MeshParticles>
, is implemented as a React component, assuming react-three-fiber. In feat: Composable Shaders #11, this component will probably undergo heavy refactoring. It would be a good opportunity to refactor the relevant code into a normalMeshParticles
class that inherits fromInstancedMesh
. This class could then still be exposed to React viaextend
(or a normal component.)<Emitter>
very conveniently is only a very thin wrapper around thespawnParticles
function, which can also be called imperatively. There is probably no need to provide a vanilla equivalent to this React component.<Delay>
,<Repeat>
and<Lifetime>
components. It should not be a goal to replicate these for imperative use. When using this library imperatively, users will most likely have their own animation primitives they can use.The text was updated successfully, but these errors were encountered: