Skip to content
Tutorials Center
My learning

Topics

Lesson 15 of 37 ยท Materials and Shading

The Shader Editor and Nodes

Learn how to use Blender's Shader Editor: nodes and sockets, adding and linking, Mix Shader, Color Ramp, Math and Mix nodes, node groups, and shortcuts.

The Principled BSDF alone gives plain surfaces. To build wood grain, rust, worn paint or procedural patterns, you connect nodes in the Shader Editor. Nodes are small boxes that each do one job, linked by wires to form a recipe. This lesson teaches the editor and the nodes you will use daily.

Opening the Shader Editor

The easiest way is the Shading workspace (tab at the top). It gives you a Shader Editor, a viewport in Material Preview and a file browser. You can also switch any area to Shader Editor. Select an object and its material nodes appear. Press Home to frame all nodes.

Nodes and sockets

A node has:

  • Inputs on the left and outputs on the right, shown as coloured sockets.
  • A title and controls (sliders, colour pickers, drop-downs).

Socket colours tell you what kind of data flows: yellow colour, grey numbers (float), purple vectors, green shader, and so on. You can connect sockets of different types and Blender converts when possible. Shader sockets (green) only connect to other shaders and the Material Output.

Drag from an output socket to an input socket to link. Drag from a socket to empty space and release to open a search that adds a node already connected.

Working with nodes

Action Input
Add a node Shift+A, or Shift+A then type to search
Move, rotate-free G, or drag the header
Delete X
Cut links Ctrl+right-drag across wires
Mute a node M
Hide node controls H
Frame nodes together Select, Ctrl+J
Duplicate Shift+D; Ctrl+Shift+D keeps incoming links
Group nodes Select, Ctrl+G; Tab enters a group

Enable the Node Wrangler add-on (Edit > Preferences > Add-ons). It adds Ctrl+Shift+Click on a node to preview it on the surface, and Ctrl+T to add texture mapping nodes in one step. It is extremely useful.

Essential nodes

Mix Shader

Blends two shaders by a Factor (0 = first, 1 = second). Use it for things like a surface that is partly metal and partly painted, with a texture driving the factor.

Color Ramp

Maps a number between 0 and 1 to a colour gradient. Use it to turn grey-scale noise into rust colours, or to sharpen a mask by moving two stops close together. Interpolation options include Linear, Ease and Constant.

Math and Mix (Color)

Math does arithmetic on numbers (Add, Multiply, Power, Greater Than, Map Range...). Mix (previously MixRGB) blends two colours with modes like Multiply, Overlay and Screen. These nodes modify textures and masks.

Texture Coordinate and Mapping

Texture Coordinate gives each point on the surface a coordinate (Generated, UV, Object, Camera...). Mapping moves, rotates and scales those coordinates so you can adjust a texture's size and orientation.

Fresnel, Layer Weight, Bump

Fresnel varies the effect by viewing angle (edges reflect more). Bump turns a greyscale height into fine surface detail; Normal Map reads a coloured normal texture.

flowchart LR
  T["Texture Coordinate"] --> M["Mapping"]
  M --> N["Noise Texture"]
  N --> R["Color Ramp"]
  R --> B["Principled BSDF<br/>Base Color"]
  B --> O["Material Output"]

The classic procedural chain: coordinates, mapping, pattern, remap, shader, output.

Python Stand-in: a node graph evaluated in order

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Group nodes for reuse

Select a set of nodes and press Ctrl+G to make a node group, and expose chosen sockets as group inputs and outputs. Groups can be reused in other materials and edited once for all copies. They keep big shaders tidy. Press Tab to enter or leave a group.

Material output targets

The Material Output node has Surface, Volume and Displacement inputs. Surface takes the shader (Principled BSDF). Volume is for fog and smoke. Displacement shifts geometry (best in Cycles with microdisplacement or with a modifier). There are also separate outputs for Cycles and EEVEE if you want different looks per engine.

Python Stand-in: mix two shaders with a factor

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Tips

  • Keep your node tree readable: use Frames and labels (N > Node tab > Label).
  • Avoid very large trees of noise nodes for objects that are barely visible.
  • To bake nodes into image textures for a game engine, use Cycles Bake (Render properties).

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does a Mix Shader do?

    Factor 0 gives the first shader, 1 the second, and in between blends them.
  2. 2. What does a Color Ramp node do?

    It converts values (such as noise) into colours or sharpens masks.
  3. 3. How do you group selected nodes?

    Ctrl+G creates a node group; Tab enters it.
  4. 4. What colour are shader sockets?

    Shader sockets are green, colour sockets yellow, floats grey and vectors purple.

Summary

  • The Shader Editor builds materials from nodes linked by sockets; the Shading workspace is set up for it.
  • Shift+A adds nodes; Ctrl+right-drag cuts links; Ctrl+G groups.
  • Mix Shader, Color Ramp, Math, Mix and Mapping nodes are the daily workhorses.
  • Procedural chains run coordinates, mapping, pattern, ramp, shader and output.

Next: UV Unwrapping