Graphics Reference
In-Depth Information
2. Next, it walks through the faces from the toBeMerged geometry and creates
new faces in the merged geometry, copying the original normal and colors.
3. As a final step, it copies the uv mapping from toBeMerged into the uv map-
ping of the merged geometry.
The result is a single geometry that, when added to the scene, looks like multiple
geometries.
See also
• The main issue with this approach is that it gets harder to color, style, anim-
ate, and transform the objects that are merged together independently. For
Three.js, after the merge, it counts as a single object. It is, however, possible
to apply specific materials to each face. We show you how to do this in the
Using separate materials for faces recipe in Chapter 4 , Materials and Tex-
tures .
Search WWH ::




Custom Search