DMA 30 · Materials

Simple shader nodes

Connect a shader and see how roughness changes a reflection under a fixed light.

Analog. Sketch the highlight on a glazed mug and a chalky mug. Which one has a small, sharp reflection?

Read a wire

A shader node does one job. Its sockets are the points where wires connect. The Principled BSDF node describes how a surface reacts to light. Connect its BSDF output to Surface on Material Output to use that shader.

Keep the light fixed and change roughness

  1. Disconnect the Surface wire, then reconnect it.
  2. Switch between Glossy and Matte under the same light. Which reflection spreads out more?
  3. For a second test, open Add a texture and connect Fac to Roughness. What takes over from the slider?

Repeat it in Blender

  1. Select a mesh and open the Shading workspace. In the Shader Editor, click New if the mesh needs a material. Switch the viewport to Material Preview.
  2. Check that the BSDF output connects to Surface, then change Roughness.
  3. To vary roughness across the surface, add Noise Texture in the Shader Editor. Connect its gray Fac output to Roughness on Principled BSDF.

Material missing? Check the assigned material slot, the Surface wire, and the viewport shading mode.

Blender manual · Principled BSDF

Optional · Set roughness with Blender Python

Select a mesh with its own Principled BSDF material. In Blender’s Scripting workspace, create a new text block, paste the code, and choose Run Script. Try 0.2 and 0.8 under the same light.

Blender Python API overview · Optional Python recipes for lighting and cameras

Blender Shader Editor with material nodes and round sockets connected by wires. View full size
In the Shader Editor, follow the wires between the round sockets.

Find this tool · Shader Editor

History · Why surface roughness changes a highlight

In 1982, Robert Cook and Kenneth Torrance published a reflection model that accounted for a surface’s tiny facets. A rougher surface spreads the reflected light over more directions, which usually gives a broader highlight. Keep the light fixed in the lab and compare a low and a high Roughness setting. Cook and Torrance · A Reflectance Model for Computer Graphics (PDF)

Test two roughness settings

Wire a surface

Read what the material controls change

When BSDF is disconnected from Surface, the material preview loses the shader. With it connected, low roughness gives a small, sharp highlight and high roughness spreads the highlight out. Connecting Noise Texture to Roughness makes sharp and soft highlights vary across the surface.

Rough. Try one material change in Blender. Finalize. Keep it if the highlight helps the shape read in your shot.