Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 37 ยท Materials and Shading

Procedural Textures and Colour

Build resolution-free materials in Blender with Noise, Voronoi, Wave and Gradient nodes, bump, masks, colour management basics and a complete rusty metal recipe.

A procedural texture is generated by maths rather than stored as an image. It has no resolution limit, no UVs are needed (it can use the object's own coordinates), and you can change it with sliders. Procedural materials are ideal for stone, clouds, marble, rust, wood-like patterns and for adding variation on top of image textures.

The main texture nodes

Add them with Shift+A > Texture:

Node Pattern Typical use
Noise Texture Soft, cloudy variation Dirt, roughness variation, terrain
Voronoi Texture Cells, cracks, points Stone, cracked earth, scales
Wave Texture Bands or rings Wood grain, marble veins
Gradient Texture Linear, radial, spherical ramps Fades, masks
Musgrave (merged into Noise in 4.1+) Fractal detail Mountains, rough patterns
Brick, Checker, Magic Regular patterns Walls, tiles, test patterns

Common controls: Scale (frequency), Detail (octaves of fine layers), Roughness (how strong the fine layers are) and Distortion (swirl). Every node outputs Fac (a number between 0 and 1) and often Color.

Coordinates for procedural textures

By default they use the object's Generated coordinates (a 0 to 1 box around the object). Choose in Texture Coordinate:

  • Generated: fits the bounding box (changes with the mesh).
  • Object: uses the object's local space (stable under scale changes if applied).
  • UV: follow the UV map.
  • World: fixed in space, so moving the object slides the texture.

Connect a Mapping node to scale, offset or rotate the pattern.

Turn numbers into looks

Pure noise is grey. You shape it with:

  • Color Ramp: maps values to colours or sharpens a mask. Moving two stops close together makes a hard edge.
  • Math nodes: Multiply, Power, Smooth Minimum, Map Range to adjust contrast.
  • Bump node: converts the greyscale pattern into small surface relief by feeding the Height input and sending its Normal output to the BSDF.
  • Mix nodes: combine two textures or colours using a mask.
Python Stand-in: from noise to a hard-edged mask

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.

The printed pattern is a stand-in mask: the # areas are where a "rust" layer would show. In Blender the Noise Texture is smooth and fractal; this stand-in only demonstrates the thresholding idea.

Recipe: rusty metal

  1. Create a Principled BSDF material. Add a Mix Shader between two Principled BSDFs: one metal (Metallic 1, Roughness 0.3, Base Color grey) and one rust (Metallic 0, Roughness 0.9, Base Color orange-brown).
  2. Add Texture Coordinate > Object into a Mapping node (Scale 3).
  3. Plug it into a Noise Texture (Scale 6, Detail 8). Send Fac into a Color Ramp with stops at 0.45 and 0.6 to create a rust mask.
  4. Connect the Color Ramp's colour to the Mix Shader Fac.
  5. Add a second, finer Noise into a Bump node connected to the Normal of the rust shader to give it a gritty relief.
  6. Add a Fresnel or Geometry > Pointiness (Cycles) mask if you want rust to start at edges.
flowchart LR
  TC["Texture Coordinate<br/>Object"] --> MP["Mapping"]
  MP --> NZ["Noise Texture"]
  NZ --> CR["Color Ramp<br/>(mask)"]
  CR --> MX["Mix Shader"]
  M1["Metal BSDF"] --> MX
  M2["Rust BSDF"] --> MX
  MX --> OUT["Material Output"]

The rust mask decides where the second shader shows through.

Colour management basics

How colours appear in the render depends on Render Properties > Color Management:

  • View Transform: Standard shows colours as-is; Filmic or AgX (the default in recent versions) compress bright highlights gracefully. Pick the default unless you have a reason.
  • Look and Exposure adjust contrast and brightness of the final image.
  • Colours you pick in the Base Color picker are in linear values internally; hex values are given in sRGB. Use the Hex tab to type colours such as #8A3B12.
Python Stand-in: hex colour to linear values

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.

Mid grey in sRGB (#808080) is about 0.216 in linear light, not 0.5. This is why picking a "50 percent grey" looks darker than expected.

Procedural versus image textures

Procedural Image
Resolution Unlimited Limited by pixels
UVs Not required Required
Control Sliders, easy to vary Fixed unless edited
Realism Needs craft Easy with photos
Game export Must be baked to images Direct

Most professional materials combine both: image textures for specific detail, procedurals for large-scale variation and wear.

Performance and baking

Complex node trees cost render time and may not work in game engines. Bake them into images in Cycles (Render > Bake, choose Diffuse, Roughness, Normal and so on) when you need to export. Keep Detail values moderate and share one noise across channels where you can.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. What is a benefit of procedural textures?

    Procedural patterns are computed, so they stay sharp at any size and can use object coordinates.
  2. 2. Which node turns grey values into a colour gradient or hard mask?

    A Color Ramp remaps 0 to 1 values; stops placed close together create a sharp threshold.
  3. 3. Which texture coordinate stays fixed in space so objects slide through the pattern?

    World coordinates do not move with the object.
  4. 4. Why is a hex colour of #808080 not 0.5 in linear light?

    sRGB values are converted to linear values; mid grey becomes about 0.216.
  5. 5. What must you do before exporting a procedural material to a game engine?

    Engines do not understand Blender nodes, so bake the result to images.

Summary

  • Noise, Voronoi, Wave and Gradient nodes generate patterns without images or UVs.
  • Color Ramp, Math, Bump and Mix nodes shape patterns into masks, colour and relief.
  • The rusty metal recipe mixes two shaders with a noise mask.
  • Hex colours are sRGB and convert to linear values; mind the colour space.
  • Combine procedural and image textures; bake nodes for game engines.

Next: Blender Lights: Point, Sun, Spot and Area Lights Explained