Rig Editor · Chapter 6 of 12

Rig Editor: Materials, Textures and Painting

Written for version 2.7.0

Materials and how to assign them, PBR and Unlit settings, textures, painting on the model, and building a material from nodes in the shader graph.

The last chapter laid a mesh out flat so that a picture can be wrapped onto it. This one gives the surface its look: materials, the textures they use, painting straight onto the model, and building a material from nodes.

What a material is

A mesh is only a shape. A material describes its surface: what colour it is, how shiny, whether it glows, whether you can see through it. A node wears a material the way a wall wears paint, and one material can be worn by many nodes: change it once and all of them change. A texture is a picture that a material uses, so the surface can carry a pattern or a painted face instead of one flat colour.

The Meshes, Materials and Textures lists

Meshes, Materials and Textures sit at the bottom of the Model group in the Selection Panel. The + beside each heading opens that list's menu. A new material arrives selected, with nothing wearing it yet.
ListWhat it holdsThe count on each row
MeshesThe shapes in the rigHow many nodes use the mesh
MaterialsThe surfacesHow many assignments: the places that wear it
TexturesThe picturesHow many materials use the texture
  • Tap a row to select it. The detail panel on the right then shows that mesh, material or texture.
  • A count in orange means nothing uses it yet.
  • Select, at the top of a list, lets you tick several rows. An Options menu then offers Move to Group… and Delete….
  • Touch and hold a row for Rename, Move to Group… and Delete. A material also has Duplicate.
  • A group is a folder inside a list, for tidiness only. Touch and hold one to rename it, add a subgroup, move it, dissolve it, or delete it with everything inside.
  • Delete always says what will change. Places that wore a deleted material switch to a fresh plain one, and materials that used a deleted texture lose that picture.
The + menu ofOffers
MeshesNew Group
MaterialsNew PBR Material, New Unlit Material, New Graph Material, New Group
TexturesImport Image…, Add Composition Texture…, New Blank Texture…, New Group

Give a node a material

Select a node and scroll the detail panel to Material. Tap the name to choose another material. The same menu can hand the node back to the mesh's own material.
  1. In Node mode, select the node.
  2. Scroll the detail panel down to Material.
  3. Tap the material's name and choose one from the menu. The node changes at once.
  4. Tap the arrow in a circle beside it to jump to that material and edit it.
  • A small grey mesh beside the name means the node has no choice of its own and follows its mesh. Once you choose, the menu gains Use Mesh Material to go back.
  • The mesh's own material is on the mesh: tap the mesh in the Meshes list and look for Default Material.
  • With several nodes selected, the detail panel has Assign Material, which gives all of them the same one.
  • A mesh that arrived with several materials, as imported models often do, shows a row for each: Assignment 0, Assignment 1 and so on.
One part, two materials

There is no command for giving selected faces their own material. To colour part of a shape differently, select those faces in Mesh mode, use Separate Selection to make them a node of their own, and give that node its material. Or keep one material and paint the difference, as shown further down.

A PBR material

PBR stands for physically based rendering. A PBR material reacts to the lights in the scene the way a real surface would: it has a lit side and a shaded side, and it can be dull like chalk or polished like metal. Tap a material in the Materials list and its settings fill the detail panel. Drag up or down on a number to change it, or tap it to open the number editor.

Base Color tints everything that wears the material. Numbers such as Roughness change as you drag them. Setting Lighting to Unlit removes the settings that only matter when light is involved.
SettingWhat it does
TypeSays what kind of material this is: PBR, Unlit or Graph. It is not a control
LightingPBR or Unlit. See the note under this table
Base ColorThe colour of the surface. Tap the swatch to pick one
RoughnessFrom 0 to 1. Low is glossy with sharp highlights, high is dull and even
MetalnessFrom 0 to 1. Zero is paint, plastic, skin or cloth. One is bare metal
EmissiveA colour the surface gives off by itself, like a screen or a lamp. Black means no glow
Normal ScaleFrom 0 to 2. How strongly a Normal texture fakes bumps and dents
OcclusionFrom 0 to 1. How strongly an Occlusion texture darkens creases
Double SidedDraws the back of each face as well as the front. Turn it on for thin things such as cloth, leaves or a sheet of paper
AlphaOpaque is solid. Mask cuts holes with a hard edge, and adds a Cutoff number that sets where the cut falls. Blend allows soft see through
Unlit versus PBR

PBR is lit and shaded by the lights in the scene, and suits nearly everything. Unlit shows its colour or picture exactly as it is, the same from every side and in any light: good for flat cartoon looks, signs, screens, and drawn eyes and mouths. An Unlit material keeps only Base Color, Double Sided and Alpha, and a single texture slot.

Textures

New Blank Texture… asks for a colour and a size in pixels. The new texture joins the list with an orange count, because no material uses it yet, and its panel shows its picture, its size, and its Wrap and Filter.
In the Textures + menuWhat you get
Import Image…A picture you already have: from your library, or with the From Photos and From Files buttons. It keeps its own size up to 8192 pixels a side, and a larger one is scaled down to fit. A photo taken with the camera held on its side comes in the right way up
New Blank Texture…One flat colour at the size you choose, from 1 to 8192 pixels a side. A clean canvas for Paint mode
Add Composition Texture…A picture made in the Compositions editor, layers and all. Choose one from your library or start a New Composition Texture

Tap a texture in the Textures list and the detail panel shows its picture and its Size, then three menus that say how the picture is read.

On a texture's panelChoicesWhat it sets
Wrap XRepeat, Mirrored Repeat, Clamp to EdgeWhat a surface shows past the left and right edges of the picture. Repeat starts the picture again, Mirrored Repeat turns every other copy round so the edges meet, Clamp to Edge stretches the last line of pixels outwards
Wrap YThe same threeThe same, past the top and bottom edges
FilterLinear, NearestLinear blends neighbouring pixels, so a picture seen close up is smooth. Nearest keeps every pixel a hard square, which suits pixel art
  • A new texture starts on Repeat, Repeat and Linear.
  • The choices belong to the texture, so every material that uses it follows them, and so does Sample Texture in a graph. Each change is a step for Undo.
  • Wrap only shows where the UVs reach outside the square, or when a slot is tiled as shown below.
  1. To put a texture on a material, select the material.
  2. Scroll the detail panel to Texture Slots.
  3. Tap a slot and choose a texture. None, at the bottom of the menu, empties the slot again.
SlotWhat its picture controls
Base ColorThe colours of the surface. This is the one you will use most
Metallic RoughnessWhere the surface is metal and where it is rough, pixel by pixel
NormalFine bumps and dents that catch the light without changing the shape
OcclusionSoft shadow in creases and corners
EmissiveWhich parts glow

Tiling, Offset and Rotation

A slot that holds a texture gains three rows beneath it, named after the slot: Base Color Tiling, Base Color Offset and Base Color Rotation. They place the picture on the surface without changing the UVs or the picture.

With a texture in a slot, Tiling, Offset and Rotation rows appear under it. Drag up on the two Tiling numbers and the picture repeats across and then down the surface.
RowNumbersWhat it does
TilingTwo: across, then downHow many times the picture fits across the UV square. 1 and 1 is once. 3 and 3 shows it nine times, each a third of the size
OffsetTwo: across, then downSlides the picture. 1 is one whole width or height of the picture, so 0.5 moves it half way
RotationOne, in degreesTurns the picture about its top left corner
  • Drag up or down on a number to change it, or tap it to open the number editor.
  • The copies are counted from the top left corner of the picture.
  • What shows past the edge of the picture follows the texture's Wrap. With Repeat, a Tiling of 3 gives three copies. With Clamp to Edge it gives one small copy and stretched edge pixels beyond it.
  • Each slot has its own three rows, and they belong to the material. Two materials can use one texture at different sizes.
  • Painting follows them: a stroke lands on the part of the picture the surface shows there.
  • A model imported from a GLB file keeps the tiling, offset and rotation it was made with.
The picture lands in the wrong places?

A texture is wrapped on by the mesh's UVs. If the mesh was never unwrapped, or its islands overlap, the picture comes out smeared or repeated. Go back to the UV chapter, unwrap the mesh, then look again. If the whole picture is upside down or mirrored, the mesh and the picture measure UVs from different corners: change UV Origin, also in the UV chapter.

What makes a composition texture different

It stays editable: its panel has Edit Composition, which opens it in the Compositions editor with its layers, and Re-bake Frames to refresh the result. It can hold several frames, and a material that uses it gets a Frame number under the slot, so two materials can show different frames. Texture Size and Include Background set how large the baked picture is and whether its background is kept. Its row wears a Composition tag in place of a count.

Paint mode

Tap Paint in the mode selector. The tool rail appears on the left and the brush box at the bottom. Drag on the model to paint. With Symmetry on, each stroke lands on both sides at once.
  1. In Node mode, select a node that has a mesh.
  2. Tap Paint in the mode selector.
  3. Drag on the model to paint. The strokes go into the Base Color texture of the material the node wears. A drag that starts off the model moves the camera as usual.
  4. Tap Node when you have finished. There is nothing to confirm.
ToolWhat a stroke does
BrushLays down the paint colour
EraserRubs paint out. On a solid material it paints white, on a Blend material it makes the surface see through
BlurSoftens what is under the brush
SmudgeDrags colour along with the stroke, like a finger through wet paint
LiquifyPushes the picture around under the brush
AlphaMakes the surface see through where you stroke. It only shows when the material's Alpha is Blend
  • Two more buttons sit under the tools. The cube shows or hides the selection's wireframe, which otherwise lies over what you are painting. The split rectangle is Symmetry: each stroke is mirrored across the middle of the model, left to right.
  • In the brush box, tap the brush picture to open Brushes and choose another brush. The upper slider is size, the lower one opacity, and the round swatch is the paint colour.
  • The sliders show no numbers. While you drag one, a preview of the brush appears above the box at its real size.
  • An Apple Pencil paints with pressure. Undo steps back one stroke at a time.
  • If the material has no Base Color texture, Paint mode makes one for you, filled with the material's colour and named after it. It appears in the Textures list.
  • Paint belongs to the material, so every node wearing that material shows it.
  • Paint spreads a few pixels past the edge of every UV island it touches, so no line of old colour shows along a seam.
  • If the Base Color texture is a composition texture, Paint opens it in the Compositions editor.
  • Painting on a very large texture needs a great deal of memory. If there is not enough free, Paint says so and does not start.
This mesh has no UVs

Paint needs UVs to know where each stroke lands in the picture. If the mesh has none, tapping Paint shows this alert. Auto Unwrap makes a quick layout and starts painting. For a layout you control, cancel and unwrap the mesh yourself first.

Graph materials

A graph material is built from nodes: small boxes that each make or change a value, joined by wires. Colour flows from left to right and ends in the Surface Output node, which is what you see on the model. PBR and Unlit materials are graphs too, ready made, which is why selecting any material shows a graph.

Selecting a material docks its graph under the viewport and the detail panel. The header adds a node or expands the graph to the full screen, and Back returns to the rig.
  • The pane appears whenever a material is selected. Drag the bar along its top edge to make it taller or shorter.
  • The rail on the canvas chooses what a one finger drag on empty canvas does: Pan, Select or Zoom. Two fingers pan and zoom at any time.
  • The inspector on the right counts the nodes and connections. Tap a node and it shows that node's values.
  • With a node selected, the header gains Duplicate and Delete. Surface Output cannot be deleted.
  • The arrows at the right end of the header open the graph full screen. Back returns to the rig.

To add a node, tap an empty part of the canvas. A card opens with a search field and the nodes sorted into folders, and the node you choose lands where you tapped. The + in the header does the same and puts the node in the middle of the view.

FolderWhat is in it
ShadingPBR, which turns colours and numbers into a lit surface
InputFacts about the surface and the camera: UV Coord, World Position, World Normal, Rim / Fresnel, Elapsed Time
ParametersValues you set: Float (a number), Color, Bool (on or off), Texture Object
MaterialThe material's own settings and texture slots, as nodes
MathAdd, Multiply, Clamp, Mix (Lerp), Sin and the rest, in subfolders
LogicComparisons and Conditional, which chooses between two values
Blend & CompositingBlend, with the usual blend modes
ColorHue/Saturation/Value, Brightness/Contrast, Color Ramp, Invert Color
ChannelsSplit Vector and the Construct Vector nodes, to take a value apart or build one
CoordinatesMove, turn and scale the pattern: Offset Coords, Rotate Coords, Scale Coords, Mapping
ProceduralPatterns made by maths: Checker, Gradient, Noise, Voronoi Noise, Wave
Texture ProcessingSample Texture, which reads a picture
HalftonePrint style dot and line screens
UtilitySticky Note, Subgraph and Discard

A worked example: a checker pattern

Tap empty canvas and choose Checker from the Procedural folder. Drag from its Out dot to Base Color on the PBR node. The wire that was there is replaced, and the model wears the pattern.
  1. Tap + beside Materials and choose New Graph Material. It starts with three nodes: Color into PBR into Surface Output.
  2. Give the material to a node, as shown earlier.
  3. Tap empty canvas, open Procedural and tap Checker.
  4. Drag from the Out dot on Checker to the Base Color dot on PBR.
  5. Tap the Checker node. Scale, in the inspector, sets how many squares there are.
  • Wires go from an output dot, on the right of a node, to an input dot, on the left.
  • An input holds one wire. Dropping a second wire on it replaces the first. To remove a wire, drag it off its input and let go over empty canvas.
  • The colour of a dot tells you what it carries: grey is a single number, yellow a colour or direction, green a pair of numbers, blue four numbers.
  • An input with no wire uses the value shown in the inspector.
  • Float, Color, Bool and Texture Object nodes also appear in the material's detail panel under Graph Inputs, so you can change them later without opening the graph. Give each a label in the inspector.
Two things that catch people out

A new graph material's three nodes start stacked on top of one another. Drag them apart before you begin. And if the inspector says the graph failed to compile, the mesh shows plain PBR until the wiring is fixed. Undo takes you back to the last graph that worked.

Something unclear?

Tell us which material, texture or node you had selected, what you tapped and what the model showed instead. A screenshot of the viewport with the detail panel helps.

Send Feedback