Specular map
In the previous examples, we mostly used THREE.MeshStandardMaterial, and the different maps supported by that material. THREE.MeshStandardMaterial is often your best choice if you need a material, since it can be easily configured to represent a large number of different types of real-world materials. In older Versions of Three.js, you had to use THREE.MeshPhongMaterial for shiny materials and THREE.MeshLambertMaterial for non-shiny materials. The specular map used in this section can only be used together with the THREE.MeshPhongMaterial. With a specular map, you can define which parts of the model should be shiny, and which parts of them should be rough (similar to the metalnessMap and roughnessMap that we saw earlier). In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access