three.js
13 Particles

Particules

const particlesGeometry = new THREE.SphereGeometry(1, 32, 32);

Material

// Material
const particlesMaterial = new THREE.PointsMaterial({
    size: 0.02, // Taille des particules
    sizeAttenuation: true // Taille des particules en fonction de la distance
});

Points

const particles = new THREE.Points(particlesGeometry, particlesMaterial);
scene.add(particles);