Distribution
When scattering more than one model you can define how each model is distributed across the surface using the distribution option.
js
import { ThreeScatter } from 'three-scatter'
const scatter = new ThreeScatter(count, surface, [model1, model2], {
distribution: [0.25, 0.75],
});INFO
In order to set the distribution property, you need to have:
- An array of models
- A
distributionproperty with equal length than the array of model - All the numbers inside the
distributionproperty needs to sum 1