Game Development Reference
In-Depth Information
You can see the result in the following screenshot:
A celebratory particle effect
We can also move the geometry's vertices directly if we want. To do this, we first
need to set geometry.dynamic = true before creating the particle system, then set
geometry.verticesNeedUpdate = true every time we change vertex positions.
We don't need to do this for our game, but it's also possible to change the color of
individual particles by changing the geometry.colors array. You can fill this array
with one color for each vertex (at the same index) and that color will be blended with
the color or image of the particle's material.
 
Search WWH ::




Custom Search