Skip to content
Tutorials Center
My learning

Topics

Lesson 14 of 39 ยท Geometry and Materials

PBR Materials: Standard and Physical

Learn physically based rendering in Three.js: roughness, metalness, clearcoat, transmission, sheen, iridescence and environment maps with an interactive material lab.

Modern 3D graphics use physically based rendering (PBR). Instead of fiddling with a vague "shininess", you describe the surface with measurable-feeling properties, and the result looks correct in any lighting. Three.js provides two PBR materials: MeshStandardMaterial and its richer sibling MeshPhysicalMaterial. Almost every glTF model you load will use them.

The two main dials

MeshStandardMaterial is controlled mostly by two numbers from 0 to 1.

  • roughness: how blurry reflections are. 0 is a mirror, 1 is chalk. Plastic is around 0.4, brushed metal around 0.5, cloth near 0.9.
  • metalness: whether the surface is a metal. It is nearly binary: 0 for plastic, wood, skin, stone (dielectrics), 1 for gold, iron, copper (metals). Values in between are for dirt and transitions, usually driven by a texture.

For dielectrics the color is the base color of the diffuse surface. For metals, color tints the reflection itself, since metals have no diffuse color.

JavaScript
const gold = new THREE.MeshStandardMaterial({
  color: "#ffcc66", metalness: 1, roughness: 0.25,
});
const rubber = new THREE.MeshStandardMaterial({
  color: "#222222", metalness: 0, roughness: 0.9,
});

Metals need something to reflect

A metal reflects its surroundings. In a scene with only a few point lights and a plain background, a fully metallic sphere looks dark, because there is nothing to reflect. That surprises beginners. The fix is an environment map: an image of a surrounding world. The next lessons cover environment lighting in detail; here we use the quickest option, RoomEnvironment, a small built-in virtual studio.

JavaScript
import { RoomEnvironment } from "three/addons/environments/RoomEnvironment.js";

const pmrem = new THREE.PMREMGenerator(renderer);
scene.environment = pmrem.fromScene(new RoomEnvironment(), 0.04).texture;

Setting scene.environment lights every PBR material in the scene with that environment, with no extra lights needed.

The roughness and metalness grid

This classic grid shows the full range. Rows change roughness; columns change metalness. Look at how the highlight spreads out as roughness rises.

Roughness and metalness grid

Left column: dielectric (metalness 0) with the base color visible. Right column: pure metal, mirror-sharp at the top row, blurry at the bottom row.

MeshPhysicalMaterial: extra layers

MeshPhysicalMaterial extends the standard material with advanced optical features. They cost more to render, so use them selectively, on a few hero objects.

Property What it adds Example
clearcoat, clearcoatRoughness A glossy lacquer layer on top Car paint, varnished wood
transmission (+ thickness, ior) See-through glass with refraction Glass, water, gems
sheen, sheenColor, sheenRoughness Soft edge glow of fibers Velvet, satin
iridescence, iridescenceIOR Rainbow thin-film shifts Soap bubbles, oil, beetles
anisotropy Stretched highlights Brushed metal
specularIntensity, specularColor Tune specular reflections Fine control of dielectrics
attenuationColor, attenuationDistance Tint light passing through Colored glass, jade
dispersion Splits colors in glass Diamonds

transmission makes Three.js render the scene behind the object into a texture first, then refract it. That is an extra render pass, so a scene with many transmissive objects is slow. Do not use transmission for window panes you can fake with plain opacity.

Material lab

Below, one sphere sits in a studio environment and you change a physical material through the panel. Try transmission at 1 with roughness near 0 and thickness at 1 for glass; turn on clearcoat while keeping metalness at 1 for car paint.

Physical material lab

Index of refraction

ior controls how strongly transmissive materials bend light. Air is 1.0, water about 1.33, glass about 1.5, diamond about 2.4 (Three.js caps at 2.333). Defaults to 1.5, right for glass.

Picking a material

  • Stylized or UI scenes: Basic or Toon, no lights needed.
  • Mobile, many objects: Lambert is cheaper than Standard.
  • Realistic everyday objects: Standard with an environment map.
  • Glass, car paint, fabric, bubbles: Physical, only where needed.

Two cheap rules make PBR look good. First, always give PBR scenes an environment, even a dim one. Second, avoid pure metalness: 1 with roughness: 0 unless the environment is interesting, because a perfect mirror just shows its surroundings.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does roughness 0 give you?

    Low roughness means sharp reflections; 1 means they are fully diffused.
  2. 2. Why does a fully metallic sphere look dark in a scene with only one point light and no environment?

    Metals have no diffuse color. They need an environment map or bright lights to reflect.
  3. 3. Which property makes a MeshPhysicalMaterial see-through with refraction?

    transmission with thickness and ior simulates glass, rendering the background through a refracting surface.
  4. 4. Which statement about MeshPhysicalMaterial is true?

    Use physical features only where they matter.

Summary

  • PBR describes surfaces with roughness and metalness; the same material then looks right in any lighting.
  • Dielectrics have metalness 0, metals 1; metals need an environment to reflect.
  • scene.environment with RoomEnvironment is the quickest way to light PBR materials.
  • MeshPhysicalMaterial adds clearcoat, transmission, sheen, iridescence and anisotropy; use it sparingly.

Next: Lines, Points and Sprites