Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.64 KB

DEVELOPMENT_GUIDE.md

File metadata and controls

40 lines (25 loc) · 1.64 KB

Welcome to Three.quarks development guide

Go back to README

Code Structure

ParticleEmitter ./src/ParticleEmitter.ts

A particle emitter is a threejs Object3D that used as a reference point to emit particles. It can be attached to any Object3D in the scene.

ParticleSystem ./src/ParticleSystem.ts

The class represents each individual particle system instance. It simulates all the particle or trails in the system.

BatchedRenderer ./src/BatchedRenderer.ts

The class represents the batch renderer. a three.js scene should only have one batchedRenderer It keeps references of all particle systems and rendering batch. It batches all particle systems that has the same rendering pipeline to a single VFXBatch.

QuarksLoader ./src/QuarksLoader.ts

QuarksLoader is a loader that loads quarks particle system from a json file. the json format is compatible with three.js's json format.

functions ./src/functions/ A folder contains all the functions or value types that can be used as parameters of a particle system.

shape ./src/shape/ A folder contains all the predefined emitter shapes that can be used in a particle system.

nodes ./src/nodes/ A new node driven VFX system that is under development.

behaviors ./src/behaviors/ A folder contains all the predefined behaviors that can be attached on a particle system. An example would be SizeOverLife which means the size of the particle changes over its life time.