Advanced materials
In this section, we’ll look at the more advanced materials Three.js has to offer. We’ll look at the following materials:
THREE.MeshLambertMaterial
: A material for rough-looking surfacesTHREE.MeshPhongMaterial
: A material for shiny-looking surfacesTHREE.MeshToonMaterial
: Renders the mesh in a cartoon-like fashionTHREE.ShadowMaterial
: A material that only shows shadows cast on it; the material is otherwise is transparentTHREE.MeshStandardMaterial
: A versatile material that can be used to represent many different kinds of surfacesTHREE.MeshPhysicalMaterial
: Similar toTHREE.MeshStandardMaterial
but provides additional properties for more real-world-like surfacesTHREE.ShaderMaterial
: A material where you can define for yourself how to render the object by writing your own shaders
We’ll start with THREE.MeshLambertMaterial
.
THREE.MeshLambertMaterial
This material can be used to create dull-looking...