Custom UV mapping

We'll start with a deeper look at UV mappings. Earlier we explained that with UV mapping, you can specify what part of a texture is shown on a specific face. When you create a geometry in Three.js, these mappings will also automatically be created, based on the type of geometry that you created. In most cases, you don't really need to change the default UV mapping. A good way to understand how UV mapping works is to look at an example from Blender, which is shown in the following screenshot:

In this example, you can see two windows. The window on the left-hand side contains a cube geometry. The window on the right-hand side ...

Get Learn Three.js - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.