Sub topic 2
Shader Nodes, Sockets and the Material Output
Assume you know basic Blender navigation, can select an object, and understand that UV coordinates describe how a 2D image maps onto a 3D surface. This chapter explains how those parts connect inside the Shader Editor.
The node graph
A material node graph is a network of shader nodes. Each node performs one part of the shading calculation. Nodes pass values through connections called links.
A socket is an input or output point on a node. Input sockets receive values, while output sockets provide values. A socket has a data type, such as color, number, vector, or shader.
The simplest useful graph has two nodes:
- Principled BSDF describes how the surface reflects, absorbs, transmits, or emits light.
- Material Output sends the finished shader to the renderer.
The Principled BSDF output is a shader socket. Connect it to the Material Output node's Surface input.
Creating and connecting nodes
- Select a mesh object.
- Open the Shading workspace.
- In the Shader Editor, create or select a material.
- Confirm that the Principled BSDF connects to Material Output.
- Change Base Color or Roughness and watch the viewport update.
A value typed directly into an input socket is a default value. For example, setting Roughness to 0.4 makes the surface moderately glossy. A link overrides that default with a value produced by another node.
| Socket kind | Typical example | Purpose |
|---|---|---|
| Value | Roughness | A single numeric setting |
| Color | Base Color | Red, green, blue, and alpha data |
| Vector | Normal | Direction or coordinate data |
| Shader | BSDF and Surface | A complete lighting response |
You can connect compatible sockets by dragging from one socket to another. Blender may convert some compatible data types automatically, but an incorrect connection can produce unexpected results. A color connected to a numeric input is converted to a value, usually from its color channels.
Reading the graph
The graph normally flows from left to right:
- Coordinate and texture nodes create or fetch data.
- Processing nodes adjust that data.
- The Principled BSDF combines surface properties.
- Material Output passes the result to the render engine.
The Material Output node can also receive Volume and Displacement inputs. Leave these unconnected for an ordinary surface material. A material can contain several output nodes, but only the active output affects the current render.
Exercise
What is the difference between a default value and a linked input socket?
Show answer
A default value is used when no link enters the socket. A linked socket uses the value produced by another node.