Alchemist0823 / three.quarks

Three.quarks is a general purpose particle system / VFX engine for three.js
https://quarks.art
480 stars 22 forks source link

Particle opacity behavior #76

Closed ManHunter closed 6 months ago

ManHunter commented 6 months ago

I could not find a way to control the opacity of particles by analogy with ColorOverLife. Are you planning to add this functionality?

Alchemist0823 commented 6 months ago

Hey @ManHunter, In ColorOverLife, the color is a Vector4 the XYZ are for RGB, the w is for alpha (opacity)

Alchemist0823 commented 6 months ago

export interface FunctionColorGenerator { type: 'function'; genColor(color: Vector4, t: number): Vector4; toJSON(): FunctionJSON; clone(): FunctionColorGenerator; }