Appearance
Material Paint
Material Paint is the brush that paints surfaces on the terrain: grass, dirt, rock, sand, snow, or any other material you have added to the terrain as a layer. It does not change the shape of the ground; it only changes what the ground looks like and what the game will draw there.
Every terrain has an ordered list of layers (each layer is one material). At every point of the ground, each layer has a share, and the shares always add up to 100 %. Material Paint raises (or lowers) the share of one layer, the one you selected, under the brush. The other layers give way in proportion, so the ratio between them does not change.
The tool has two ways of painting, chosen with the Restore Generated Paint check box:
| Paint (default, check box off) | Restore Generated Paint (check box on) | |
|---|---|---|
| What a drag does | Adds the selected material under the brush (or removes it, with Shift held, or with Ctrl on a click). | Takes away your hand-painted surface under the brush and shows again what Terrain Auto Paint generated there. |
| What it uses | Radius, Strength, Falloff, Opacity, Blend Mode, Pattern. | Radius, Strength, Falloff and Opacity only. |
Inside Paint, the Blend Mode (Add / Replace) decides how the material grows, and the optional Pattern (Solid, Noise, Cellular / Voronoi) decides where inside the brush the material goes.
Screenshots
No screenshot of the Material Paint sections of the Inspector could be taken for this page. This machine has no Electron build of the editor (no electron binary and no dist/electron-app), and installing one was not allowed. A capture script is ready in manual/capture/terrain-material-paint.ts, but it has not been run yet. The image below is an earlier real capture (from capture/map.ts) of the Terrain tool group. Everything else on this page comes from the editor's source code, and the panels are described in words.
Where to find it
- Click the Map workspace button in the top bar.
- On the toolbar on the left of the 3D view, find the Terrain group. Click its small arrow ▸, or right-click the group button, to open the list of Terrain tools (see Tool groups).
- Click Material Paint (icon ❖). Its tooltip hint is "Ctrl: Remove".

Real capture from an earlier run of the editor (capture/map.ts). The top bar of the current editor may look different; the Terrain list is the same. The Terrain section of the Hierarchy (left panel, with the terrain "Crate Island") is where you select the terrain, see below.
After that, the Terrain group button shows the ❖ icon, and clicking the group button itself arms Material Paint again (a group button arms the last tool you used from it).
Material Paint has no keyboard shortcut of its own.
Select the terrain to see the settings
Arming the tool does not open its settings by itself. The Material Paint settings are sections of the Terrain Inspector, and the Terrain Inspector is shown only while the terrain is selected:
- in the Hierarchy (left panel, Map › Hierarchy), click the terrain's name under Terrain. (Double-click also frames it in the view.)
- Creating a terrain selects it automatically.
The brush itself paints whether or not the terrain is selected: as soon as Material Paint is armed and the terrain has a layer, dragging on the ground paints with the current settings. Selecting the terrain is only needed to see and change the settings and the layers.
Selecting something else (an object, a road, a building, a spline, a gameplay object, an editor layer or group…) replaces the Terrain Inspector with that object's Inspector. Material Paint stays armed. Click the terrain in the Hierarchy again to get the panel back.
How to stop using the tool
- Press Esc twice quickly (within 400 ms) to go to the Select tool. (A single Esc abandons a stroke in progress: see Keyboard and mouse.)
- Or arm any other tool from the toolbar.
Before you start
| Requirement | What happens without it |
|---|---|
| The map has a terrain. | The toolbar entry is disabled with "Create a terrain first." See Create the terrain. |
| The terrain is not locked (lock icon next to the terrain in the Hierarchy, or the Organization section of the Terrain Inspector). | The toolbar entry is disabled with "The terrain is locked. Unlock it to sculpt or paint." If the terrain is locked while Material Paint is armed, the brush stops painting, the Brush and Pattern sections disappear and the Material Paint section shows the warning "Add a layer before painting: there is no surface to paint with yet." (the same text as for a terrain with no layer; unlocking brings everything back). |
| The terrain has at least one layer. | Nothing to paint with. The Layers section says "No layers yet. Add one to give this terrain a surface." and the Material Paint section shows "Add a layer before painting: there is no surface to paint with yet." See Add your first layer. |
| You are in the Map workspace and not in Preview. | The brush is not armed: no ring, nothing is painted. |
| The terrain's paint data is usable. | If the Problems panel reports the terrain's paint data as unusable (invalid weights, a wrong layer count or size), painting is disabled. Sculpting still works. |
| The ground you paint is in chunks that are ON (see the Chunks tab). | A stroke only writes chunks that are ON. Paint that would fall into an OFF chunk is dropped: the brush simply stops at the edge of the loaded chunks. |
The panel at a glance
With the terrain selected and Material Paint armed, the Terrain Inspector shows these sections, from top to bottom. The sections marked (always) are part of every Terrain Inspector; the others appear only for Material Paint.
- Terrain (always): the terrain's name (and its id, at Advanced).
- Organization (always): among others, the terrain's lock.
- Size (always): Width, Length, Max Height.
- Layers (always): the layer list, + Add Layer, and (at Advanced) the Paint Resolution. See The Layers section.
- Material Paint: one line that tells you whether the brush can paint. See Statuses and messages.
- Material: the material of the selected layer: its name, Edit Material and Textures..., Tint, Texture Scale, Projection, Triplanar Blend Sharpness, Normal Intensity. See The Material section.
- Brush: Radius, Strength, Falloff, Opacity, Blend Mode, Restore Generated Paint, Clear Manual Paint. See The Brush section.
- Pattern: Use a pattern and, when it is on, the pattern settings. See The Pattern section.
- Chunks (Medium), Heightmap (Advanced), Statistics, In Map (always): terrain settings that have nothing to do with painting.
Which sections exist depends on the state:
| State | Material Paint line | Material | Brush, Pattern |
|---|---|---|---|
| Terrain selected, Material Paint not armed | – | – | – |
| Armed, terrain has no layer | warning | – | – |
| Armed, terrain locked | warning | ✓ (if the selected layer resolves) | – |
| Armed, a layer is selected and resolves | hint | ✓ | ✓ |
| Armed, the selected layer is a Missing layer | hint | – (nothing to edit) | ✓ |
Hidden settings ("Show more")
Some fields appear only at a higher Inspector Complexity (File › Preferences… › General › Inspector Complexity; see The Inspector). A new install starts at Normal. A hidden field keeps its value and keeps working: it is only not drawn. Each section that hides something ends with Show more (N), which shows its hidden fields without changing the preference. When a hidden field differs from its default, the section also says that hidden settings are modified, so a changed Blend Mode or Seed is never silently in effect.
| Field | Section | Shown from |
|---|---|---|
| Paint Resolution (and its note) | Layers | Advanced |
| Projection | Material | Medium |
| Triplanar Blend Sharpness (1-16) (only with Projection: Triplanar) | Material | Medium |
| Normal Intensity (only if the material has a normal map) | Material | Medium |
| Falloff | Brush | Medium |
| Blend Mode | Brush | Medium |
| Pattern Scale (m) | Pattern | Medium |
| Contrast, Edge Noise, Distortion | Pattern | Medium |
| Detail Scale (fraction of pattern) | Pattern | Medium |
| Seed (with New Seed) | Pattern | Medium |
Coverage and Variation are shown at every level. So at Normal the Brush section ends with Show more (2), the Material section with Show more (1) to (3) (depending on the projection and on the normal map), and the Pattern section, when Use a pattern is on, with Show more (6). These counts are worked out from the source; they have not been seen in a real capture.
Quick start
Paint a dirt path on grass
- Select the terrain in the Hierarchy. In Layers, click + Add Layer and add a grass layer, then a dirt layer (see Add your first layer). The first layer covers the whole terrain; the second starts with no coverage.
- Arm Terrain › Material Paint.
- In Layers, click the dirt row. It becomes the selected (highlighted) row, and the Material section shows its name.
- Set Radius to about half the width of the path.
- Drag along the path. Each pass adds more dirt; keep going over it until it is as solid as you want. Opacity (100 % by default) is the most dirt one stroke can reach.
- Release. The whole drag is one undo step (Ctrl+Z).
- To take dirt off again, hold Shift and drag over it: the grass comes back.
Scatter snow patches with a pattern
- Select the snow layer in Layers.
- In Brush, open Show more and set Blend Mode to Replace.
- In Pattern, tick Use a pattern. Pattern Type is Noise by default.
- Drag over the peaks. Snow appears in soft patches about 12 m across (the default Pattern Scale), fixed to the ground: painting over the same spot again fills the same patches, never new ones.
Choosing the layer to paint
The brush paints the selected layer: the highlighted row of the Layers list. Click a row's name or thumbnail to select it.
- Selecting a layer is not an edit: no undo step, nothing marked as unsaved, nothing saved. Pressing Ctrl+Z after clicking a row undoes your last stroke, not the click.
- When no layer is selected, or the selected one is removed from the terrain, the first layer of the list is selected automatically. So right after you add a terrain's first layer, the brush is ready to paint with it.
- Adding more layers does not change the selection.
- The selection follows the layer, not its position: moving it up or down, renaming it or changing its textures keeps it selected.
- The selection is kept for the session only. It is not saved with the project.
- A Missing layer row (its material is not in this project) can still be selected and painted: the paint goes to that layer's slot, but nothing is drawn for it, and the Material section does not appear.
Painting: the gesture
| Action | Result |
|---|---|
| Click on the terrain | One stamp at that point. |
| Press and drag | Stamps along the path, one every quarter of the Radius of travel. The number of stamps depends on the distance you drag, not on the speed or on how long you hold. Holding still paints nothing more. |
| Release | The whole drag (every chunk it crossed) becomes one undo step. A drag that changed nothing records nothing. |
| Shift held when you press, then drag | Removes the selected material along the path. |
| Ctrl held, click (no move) | Removes the selected material: one stamp. |
| Ctrl + drag / Alt + drag | Turns / pans the camera. Nothing is painted or removed. See the warning below. |
| Esc during a drag | The stroke is abandoned. The ground shows what it showed before; nothing is recorded. |
| Dragging off the terrain | Nothing is painted while the pointer is off the ground; a brush whose ring is completely off the terrain does not smear its border. |
Ctrl + drag moves the camera
The panel hints say "Hold Ctrl while dragging to remove it (Shift works too)" and "Ctrl + drag removes the selected material and reveals the layers underneath." In this version of the editor a drag that starts with Ctrl or Alt held belongs to the camera (Ctrl orbits, Alt pans) as soon as the pointer moves 4 pixels, and the tool never sees it. To remove by dragging, hold Shift. Ctrl still works for a click (a press released before the pointer moves 4 pixels), which removes one stamp.
The modifier, the brush (Radius, Strength, Falloff) and the paint settings (Opacity, Blend Mode, Pattern) are frozen when you press. Changing a field, or pressing or releasing Shift, during a drag does not change the stroke in progress; the next stroke uses the new values. While you drag, every field of the Material, Brush and Pattern sections is disabled.
The ring
While Material Paint can paint, a ring follows the pointer on the ground. It shows the Radius only: there is no inner falloff ring and no centre mark (those belong to the sculpt brushes), and the ring does not show the pattern.
How a stamp changes the paint
Each stamp works on every paint texel inside the ring. For each texel it takes:
- falloff: the weight of the brush at that distance from the centre, 1 at the centre and 0 at the rim, shaped by the Falloff curve. With a pattern, Edge Noise first pushes the rim in or out;
- mask: the pattern at the texel's world position, from 0 (no material here) to 1. Without a pattern it is 1 everywhere;
- rate = Strength × 0.08: the most one stamp can add at full falloff.
Then the selected layer's share changes like this (Opacity, Strength and the pattern values as fractions of 1):
| Mode | New share of the selected layer | In words |
|---|---|---|
| Add | the smaller of (Opacity × mask) and (old share + rate × falloff) | Grows a little per stamp, up to a ceiling of Opacity × mask. Never lowers the layer: where it is already above the ceiling, Add leaves it alone. |
| Replace | old share + (Opacity × mask − old share) × falloff × Strength | Moves the layer towards Opacity × mask, a fraction of the way per stamp (half the way at the centre with Strength 50 %). It can lower the layer: where it is above the target, it is brought down. |
| Remove (Shift, or Ctrl + click) | the larger of 0 and (old share − rate × falloff × mask × Opacity) | Takes the layer away a little per stamp, in the same pattern shape, scaled by Opacity. Works the same with Add and Replace. |
After the selected layer is set, the other layers are scaled so that the total is 100 % again, keeping their ratio to each other. When removal empties a texel completely, the freed share goes to the first layer of the list (or to the second layer, if you are removing the first one). On a terrain with a single layer nothing can be removed: the ground stays fully covered by it.
With the defaults (Add, Opacity 100 %, no pattern) this is the plain brush: each stamp adds Strength × 8 % at the centre, fading to nothing at the rim, up to 100 %.
Where the stroke is kept: manual paint above Auto Paint
Your strokes are kept as manual paint, a separate layer of paint on top of everything Terrain Auto Paint generates (the global palette and the World Zones' palettes):
what you see = base paint (layers you added, Auto Paint rules, river / coast surfaces)
+ generated paint (Terrain Auto Paint palette, World Zone palettes)
+ manual paint (Material Paint strokes)
+ feature surfaces on top (roads, dams, railway beds, substations)- A stroke paints what you see (the composite of base, generated and manual paint) and stores only what the brush changed as manual paint. The ground looks exactly as you painted it, and keeps looking so when the generated paint underneath is regenerated or cleared. The Brush section says so: "Strokes are kept as manual paint above Auto Paint: regenerating never removes them."
- Removing a material that came from Auto Paint (with Shift) also works: the removal is stored as manual paint that covers it with the other layers.
- Roads and the other feature surfaces are drawn over what you paint: painting under a road does not show through the road.
- To go back to the generated paint, use Restore Generated Paint (by brush) or Clear Manual Paint (the whole terrain).
- The editor exports exactly what you see: the exported terrain carries the composed paint.
Blend Mode: Add or Replace
Add (default) is the classic brush. Each pass adds a little; the material builds up gradually and stops at Opacity. Use it to build coverage softly, to blend two materials, or to make a gradient by passing more over one side.
Replace makes the selected material dominant quickly: under the full part of the brush, it is driven to Opacity whatever was painted there before, including a stronger coverage of the same material.
Things to know about Replace:
- With a pattern, Replace drives the layer to Opacity × mask. Where the pattern is 0 (between patches or cells), it drives the layer to 0: painting Replace with a pattern over ground already covered by that material cuts the gaps out of it. Add never does this.
- With Opacity at 0 %, Replace removes the selected material, like a removal stroke.
- Replace moves the value by falloff × Strength per stamp, so at Strength 100 % the centre of a single stamp already reaches the target.
Restore Generated Paint
Tick Restore Generated Paint (Brush section) to turn the brush into an eraser of manual paint. Its tooltip says: "The brush removes manual paint, revealing the Global / Zone Auto Paint underneath."
- Each stamp fades the manual paint under the brush by Strength × 16 % × falloff × Opacity (twice the rate of a removal stroke). Where little enough is left, the manual paint of that texel is removed completely.
- What appears is whatever is underneath: the generated paint of Terrain Auto Paint and the World Zones, and under that the base paint.
- The selected layer, the Blend Mode, the Pattern and Shift / Ctrl have no effect in this mode. Radius, Strength, Falloff and Opacity do.
- Where nothing was hand-painted, it does nothing.
- One drag is one undo step, like a paint stroke.
- The check box is read when you press, like every other setting (it is disabled during a drag). It is kept for the session only: it is off again after you restart the editor.
The Layers section
The list is ordered, and the order is part of the terrain's data: row 1 is the first paint channel, row 2 the second, and so on, and the game's terrain receives its layers in the same order. Each row has, from left to right:
| Control | What it does |
|---|---|
| Thumbnail and name (the row button) | Selects the layer as the one the brush paints. The selected row is highlighted. The name is the material's own name, shown as you typed it. A badge follows when needed: Missing layer (the layer is not in this project; its slot and its paint are kept, and a fallback surface is drawn), Hidden (hidden with the eye button), Missing texture (one of its textures is not in the project; the preview draws it grey). |
| ◉ / ○ (Hide layer / Show layer) | Hides the layer in the editor view only (tooltip: "Hide layer (authoring view only; nothing painted changes)"). The hidden layer's share is given to the other layers on screen; nothing painted changes, nothing is recorded, nothing is saved or exported differently. If every layer is hidden, a fallback colour is shown. You can still paint a hidden layer (you just will not see it). Kept for the session only. |
| ▲ (Move Up) | Moves the layer one place up. Disabled on the first row. One undo step. The terrain looks identical afterwards: the paint moves with the layer. What changes is which layer is first (the one emptied ground falls back to) and the order the game receives. |
| ▼ (Move Down) | Moves the layer one place down. Disabled on the last row. One undo step. |
| ✎ (Edit) | Opens the Edit Terrain Layer dialog for this layer (see The layer dialog). Disabled for a Missing layer. |
| ✕ (Remove) | Removes the layer from this terrain, as one undo step. If the layer is painted somewhere, or is the first layer, the first click only turns the button into Remove? (tooltip: "This layer is painted or is the base layer: click again to remove it. Undo brings it back."); a second click removes it. An unused layer that is not the first goes at once. Selecting another row cancels a pending Remove?. The removed layer's share is redistributed to the remaining layers in proportion; ground it covered completely falls back to the first remaining layer. The material itself stays in the project. |
Under the list:
| Control | What it does |
|---|---|
| + Add Layer | Opens the Add Terrain Layer picker: every terrain layer of the project, with its thumbnail. Layers this terrain already uses are greyed with in use ("This terrain already uses this layer."). Click a layer to add it at the end of the list (one undo step). Create New Layer (bottom of the picker) opens the Create Terrain Layer dialog; the new layer is created in the project and added to this terrain (only the adding is an undo step). The first layer a terrain gets covers the whole terrain; every later layer starts with no coverage, so the terrain does not change until you paint it. |
| Paint Resolution (Advanced; "Paint Resolution per Chunk" on a chunked terrain) | Read-only: the size of the paint grid (for example 512 × 512), with the note "N paint texels. Independent from the heightmap resolution." Nothing finer than one texel can be painted. |
| "The paint data of this terrain could not be read back…" | Shown only when the terrain's saved paint could not be loaded. The terrain is shown covered by its first layer. Re-paint it before saving over it. |
Preview limit. The editor view blends at most 6 layers per chunk (the 6 that cover that chunk most). A terrain may have more; all of them are painted, saved and exported. The Problems panel reports this as information: "This terrain has N layers; the editor preview blends the 6 that cover each chunk most (chosen per chunk). All of them are saved and exported."
The Material section
These fields edit the material of the selected layer (the terrain layer asset itself). The section note says it: "These change the material itself, on every terrain that uses it. Each change is one undo step."
- Each committed change is one undo step. Number fields commit when they lose focus or when you press Enter, not at every keystroke; typing the value it already had records nothing.
- A change that would make the material invalid is refused (the field goes back to the stored value when the panel refreshes).
- All fields are disabled during a stroke.
- The section shows for any armed state where the selected layer resolves, even when the terrain is locked: a material is not part of the terrain.
| Name | Control | Level | Default | Range / units | Purpose and effects |
|---|---|---|---|---|---|
| (thumbnail) | Image | Normal | – | – | The material's base colour texture. |
| Name (no visible label; the field next to the thumbnail) | Text | Normal | – | – | The material's name. Committed on change. An empty name is ignored (the old name stays). Renaming never changes the layer's identity: every terrain using it keeps it. |
| Edit Material and Textures... | Button | Normal | – | – | Opens the Edit Terrain Layer dialog for this material (the same as ✎ in its row). See The layer dialog. |
| Tint | Colour picker, with the hex value beside it | Normal | white (#ffffff) | RGB | Multiplies the material's base colour. White = the texture as it is. Committed when the colour picker reports a change. Exported to the game. |
| Texture Scale (m per repeat) | Number | Normal | the material's own tile size (8 for a new layer) | Greater than 0 (min 0.01, step 0.5 in the field), at most 10 000 m | How many metres one repeat of the texture covers, on any terrain. The material's own width / depth ratio is kept: a material tiled 8 × 4 changed to 16 becomes 16 × 8. A value of 0 or less is ignored; a value above 10 000 is refused. |
| Projection | Drop-down | Medium | Planar (top-down) | Planar (top-down), Triplanar (cliffs and walls) | Planar: the texture is projected straight down; on steep slopes it stretches. Triplanar: the texture is also projected from the sides and blended by the slope, so cliffs and walls show it at its normal size; flat ground looks the same in both modes. Triplanar costs three texture reads for that layer. Exported; the game's terrain shader must support it. |
| Triplanar Blend Sharpness (1-16) | Number | Medium | 4 | 1–16, step 1; values outside are held at the limit | Only with Projection: Triplanar. How sharply the top and side projections hand over as the slope changes: low = wide, soft blend; high = a narrow, sharp transition. Switching back to Planar forgets the value (it is 4 again next time). |
| Normal Intensity | Number | Medium | 1 | 0–4, step 0.1; values outside are held at the limit | Only if the material has a normal map. Strength of the relief the normal map gives. 0 = flat. |
The layer dialog's own Normal Strength slider (0–200 %) edits the same value; this field can go up to 4 (400 %).
The layer dialog
Edit Material and Textures... and ✎ open the Edit Terrain Layer dialog; Create New Layer opens the same dialog as Create Terrain Layer. It edits the same material as the Material section, with these fields (verified from the dialog template; this page does not cover every option of the shared material picker):
| Field | What it is |
|---|---|
| Name | Required: Save / Create stays disabled while it is empty. |
| Material | The Surface Material the layer is made of (textured materials only: a Color material has no map to paint with). Its maps fill the layer's textures. |
| Advanced Overrides (only with a material) | A collapsible part. Enable Material Map Overrides (off by default) shows Albedo override, Normal override and Mask override: each can Choose a library texture, go back to the material's map (None), or (Normal, Mask) Disable map. A line "Draws:" sums up where each map comes from. |
| Textures (only for a layer made of plain textures, without a material) | Base Color (required: "A layer needs a base color texture."), Normal, Mask, each with Choose (and Clear for Normal and Mask). |
| Tiling: Tile Size X, Tile Size Z | World units per repeat ("A tile size of 8 repeats the texture every 8 world units, on any terrain."). Must be positive on both axes. |
| Offset X, Offset Z | Shift of the texture, in world units. |
| Anti-Repetition | As the material (On / Off) (or Off (no material default)), or Custom for this layer with Enabled, Variation, Blend, Rotation, Mirror, Offset. Rotation is skipped when the repeat is not square. |
| Surface: Metallic, Smoothness, Normal Strength | Sliders in %. Normal Strength only with a normal map. |
| Mask note | "The mask map is stored and exported to Unity, but the editor preview does not blend it yet." |
Save (editing) changes the material for every terrain that uses it, as one undo step. Create adds the new material to the project at once (not an undo step) and adds it to this terrain (one undo step).
The Brush section
Radius, Strength and Falloff are the same settings as the terrain sculpt brushes (Raise, Lower, Smooth, Flatten, Noise and the others): changing them here changes them there. They are kept for the session only (back to their defaults after the editor restarts). Opacity, Blend Mode and the Pattern are Material Paint's own settings and are remembered after a restart, on this computer (not per project).
None of these settings is an edit of the map: no undo step, no unsaved mark, nothing saved with the project or exported. Only strokes change the terrain. All fields are disabled during a stroke.
| Name | Control | Level | Default | Range / units | Purpose and effects |
|---|---|---|---|---|---|
| Radius | Number | Normal | 10 | 0.25–500 world units (m), step 1. Values outside are held at the limit. | The radius of the ring. Also sets the stamp spacing: one stamp every quarter of the radius. (The sculpt panel's Size is the same value.) |
| Strength | Slider, % (shown in the label) | Normal | 50 % | 5–100 %, steps of 5 | How much one stamp does: the rate of Add and Remove (Strength × 8 % per stamp at the centre), and the fraction of the way to the target for Replace. Restore Generated uses twice the rate. |
| Falloff | Drop-down | Medium | Smooth | Smooth, Linear, Sharp, Bell, Plateau, Hard | How the effect fades from the centre to the rim. Smooth: soft at both ends (no visible seam where stamps overlap). Linear: straight ramp. Sharp: strong in the middle, drops quickly. Bell: Gaussian-like, rounder top. Plateau: full strength over the inner 60 %, then a quick soft drop. Hard: no fade at all (a hard-edged disc). The fade always runs over the whole radius: the sculpt panel's Falloff width (%) and Spacing do not apply to Material Paint. |
| Opacity | Slider, % (shown in the label) | Normal | 100 % | 0–100 %, steps of 5 | How far one stroke can take the material: the ceiling of Add, the target of Replace, a scale on removal and on Restore Generated. Painting again with the same Opacity never goes past it (Add). 0 % paints nothing with Add and removes nothing; with Replace it removes the material. |
| Blend Mode | Drop-down | Medium | Add | Add, Replace | See Blend Mode. Removal is not a blend mode: it is Shift (or Ctrl + click) and works with both. |
| Remove hint | Text | – | – | – | "Ctrl + drag removes the selected material and reveals the layers underneath." (See the warning: drag with Shift.) |
| Restore Generated Paint | Check box | Normal | Off | – | Turns the brush into an eraser of manual paint. See Restore Generated Paint. Not remembered after a restart. |
| Layered hint | Text | – | – | – | "Strokes are kept as manual paint above Auto Paint: regenerating never removes them." |
| Clear Manual Paint | Button | Normal | – | – | Shown only while the terrain has manual paint. See Clear Manual Paint. |
Clear Manual Paint
Clear Manual Paint removes all the manual paint of the terrain, in every chunk (including chunks that are OFF), as one undo step. The ground goes back to the generated paint (Terrain Auto Paint, World Zones) and the base paint underneath.
- There is no confirmation: use Ctrl+Z to bring it back.
- The button disappears once there is no manual paint left.
- A locked terrain is refused.
- The confirmation message "Manual paint cleared." belongs to the Terrain Auto Paint panel; this panel shows no message.
- It is the same action as in the Terrain Auto Paint panel.
The Pattern section
The pattern decides where inside the brush the material appears, not how its texture looks (that is the material's tiling, tint and projection). The section note says: "The pattern decides where the material appears. It is fixed to the ground - the same seed paints the same shapes in the same place every time - and it is baked into the paint when you release the mouse."
How it behaves, from the source:
- It is fixed to the world: the pattern is computed from the world position of each texel and the settings, never from the camera, the time, the stroke or the chunk. It does not move when the camera moves, two strokes with the same settings agree exactly on where the material goes, and it continues across chunk borders with no seam.
- It is baked: what you paint is stored as ordinary paint. Undo, saving, reloading and exporting never compute the pattern again, and changing the pattern later never changes what you painted before.
- The ring does not show the pattern: paint to see it.
- It applies to removal strokes too (you remove in the pattern's shape), but not to Restore Generated.
| Name | Control | Level | Default | Range / units | Purpose and effects |
|---|---|---|---|---|---|
| Use a pattern | Check box | Normal | Off | – | Off = plain smooth brush, whatever the values below say. On shows the fields below. |
| Pattern Type | Drop-down | Normal | Noise | Solid, Noise, Cellular / Voronoi | Solid: no patches; the material goes wherever the brush reaches (Variation and Edge Noise still apply). Noise: soft, irregular patches (weathering, snow drifts, sand). Cellular / Voronoi: cells of different strength separated by thin crevices (stylized rock, cliff faces, dry mud). Coverage, Contrast and Distortion shape Noise and Cellular; they change nothing on Solid. |
| Pattern Scale (m) | Number | Medium | 12 | 0.5–500 m, step 1; values outside are held at the limit | The size of one patch (Noise) or one cell (Cellular), in metres. Also sets the size of the Edge Noise wobble (half this size). |
| Coverage | Slider, % | Normal | 50 % | 0–100 %, steps of 5 | How much of the ground the pattern lets through. 0 % = (almost) nothing, 100 % = (almost) everything; in between, more coverage = bigger patches. |
| Variation | Slider, % | Normal | 30 % | 0–100 %, steps of 5 | How much the strength varies inside the covered areas, with a finer noise (its size is Detail Scale). 0 % = covered areas are even. |
| Contrast | Slider, % | Medium | 50 % | 0–100 %, steps of 5 | Soft (0 %) to hard-edged (100 %) pattern boundaries. |
| Edge Noise | Slider, % | Medium | 0 % | 0–100 %, steps of 5 | Breaks up the round rim of the brush: the edge is pushed in or out by up to about a third of the radius, in a shape fixed to the ground. 0 % = round brush. Nothing is ever painted outside the ring. |
| Distortion | Slider, % | Medium | 20 % | 0–100 %, steps of 5 | Bends the pattern: straighter noise edges and regular cells become wavier and irregular. 0 % = undistorted. |
| Detail Scale (fraction of pattern) | Number | Medium | 0.25 | 0.05–1, step 0.05 | The size of the fine Variation noise, as a fraction of Pattern Scale (0.25 × 12 m = 3 m by default). |
| Seed | Number | Medium | 1 | 0 – 4 294 967 295, whole numbers | The only source of randomness. The same seed gives the same shapes at the same place, today, after a reload and on another computer. Another seed gives another pattern. |
| New Seed | Button | Medium | – | – | Picks a random seed (once, now). Everything painted with it afterwards is again fully repeatable. |
These settings are remembered after the editor restarts (with Opacity and Blend Mode), on this computer.
Statuses and messages
| Where | Text | When |
|---|---|---|
| Toolbar entry tooltip (disabled) | "Create a terrain first." | The map has no terrain. |
| Toolbar entry tooltip (disabled) | "The terrain is locked. Unlock it to sculpt or paint." | The terrain is locked. |
| Material Paint section (hint) | "Drag to paint the selected material. Hold Ctrl while dragging to remove it (Shift works too)." | The brush can paint. |
| Material Paint section (warning) | "Add a layer before painting: there is no surface to paint with yet." | Material Paint is armed but the brush cannot paint: the terrain has no layer, or it is locked, or its paint data is unusable. |
| Layers section | "No layers yet. Add one to give this terrain a surface." | The terrain has no layer. |
| Layer row badges | Missing layer, Hidden, Missing texture | See The Layers section. |
| Remove button | Remove? | Waiting for the confirming second click. |
| Layers section (warning) | "The paint data of this terrain could not be read back, so it is shown covered by its first layer rather than what was authored. Re-paint it before saving over it." | The saved paint could not be loaded. |
| Problems panel (info) | "This terrain has N layers; the editor preview blends the 6 that cover each chunk most…" | More than 6 layers. |
Keyboard and mouse
| Input | Paint | Restore Generated Paint |
|---|---|---|
| Left click | One stamp of the selected material. | One restore stamp. |
| Left drag | Paints along the path; one undo step on release. | Restores along the path; one undo step on release. |
| Shift + click / drag | Removes the selected material. | No difference. |
| Ctrl + click | Removes one stamp of the selected material. | One restore stamp. |
| Ctrl + drag / Alt + drag | Camera orbit / pan. | Camera orbit / pan. |
| Mouse wheel, middle or right drag | Camera zoom / pan. | Camera zoom / pan. |
| Esc | Abandons the stroke in progress. | Abandons the stroke in progress. |
| Esc Esc (within 400 ms) | Select tool. | Select tool. |
| Ctrl+Z / Ctrl+Y | Undo / redo a stroke (also layer and material edits). | Undo / redo a stroke. |
Undo, saving and what is kept
| Action | Undo step? | Saved with the project? |
|---|---|---|
| One stroke (paint, Replace, removal, any pattern, Restore Generated) | One per drag, however many chunks it crossed. A stroke that changed nothing records nothing. | Yes: the terrain's manual paint. |
| Clear Manual Paint | One. | Yes. |
| Add, remove, move a layer | One each. | Yes: the terrain. |
| Material edits (name, tint, texture scale, projection, triplanar blend, normal intensity, dialog Save) | One per committed change. | Yes: the material, for every terrain that uses it. |
| Creating a new layer (Create) | No (adding it to the terrain is). | Yes: the project's library, at once. |
| Selecting a layer, hiding a layer | No. | No (session only). |
| Radius, Strength, Falloff, Restore Generated Paint | No. | No (session only). |
| Opacity, Blend Mode, Pattern (with Seed) | No. | No. Remembered by the editor on this computer, after a restart. |
Undo puts back exactly the paint you had before and redo exactly what you painted: nothing is recomputed, so a pattern cannot come back different.
Typical tasks
The values below are starting points that follow from what each setting does in the source. How the result looks on your terrain has not been checked in a real run.
Add your first layer
- Select the terrain in the Hierarchy.
- In Layers, click + Add Layer.
- Click a layer of the list, or Create New Layer: type a Name, choose a Material (or a Base Color texture), check the Tile Size, click Create.
- The whole terrain now shows that surface. It is the first layer: the base that emptied ground falls back to.
- Add a second layer the same way. Nothing changes on the ground until you paint it.
Paint rock on steep mountain sides
- Select the rock layer. In Material, open Show more and set Projection to Triplanar (cliffs and walls). The rock texture no longer stretches on the walls (this changes the material on every terrain that uses it).
- Optionally, tick Use a pattern, Pattern Type: Cellular / Voronoi, Pattern Scale around the size of the rock blocks you want.
- Paint the slopes. Increase Triplanar Blend Sharpness if the hand-over between flat and steep looks too soft.
Patchy snow on the peaks
- Select the snow layer. Blend Mode: Replace, Opacity 100 %.
- Use a pattern, Noise. Raise Coverage for more snow, Contrast for crisper edges.
- Paint the peaks. Lower Coverage and paint the slopes below for scattered patches.
- For another arrangement of patches, click New Seed before painting. To continue a pattern later (even after a restart), keep the same seed.
Soften a hard boundary between two materials
- Select the material on one side. Blend Mode: Add, Opacity around 50 %, Strength low.
- Paint along the boundary. Add never goes past the Opacity, so the transition stays mixed.
Remove a material
- Select the material you want to remove.
- Hold Shift and drag over it (or Ctrl + click, one stamp at a time). The other layers come back in proportion.
Undo hand painting over Auto Paint
- Tick Restore Generated Paint.
- Drag where you want the generated paint back. Untick to paint normally again.
- To remove all hand painting at once, click Clear Manual Paint.
Check what a layer covers
Click ◉ on the other layers to hide them in the view (or hide one layer to see what is under it). Nothing changes in the data. Click ○ to show them again.
Common mistakes
- "I armed Material Paint but I see no settings." The settings are in the Terrain Inspector: select the terrain in the Hierarchy.
- "Ctrl + drag turns the camera instead of removing." A drag that starts with Ctrl or Alt held belongs to the camera. Hold Shift to remove by dragging; use Ctrl only for single clicks.
- "Nothing happens when I paint." Check: the terrain has a layer and is not locked; you are not in Preview; the chunks are ON; Opacity is not 0 % (with Add); Restore Generated Paint is not ticked (it only removes manual paint, and does nothing where there is none); the layer you paint is not Hidden; the layer is not past the 6 layers the view can draw on that chunk; the spot is not under a road or another feature surface.
- "Painting again does not make it stronger." Add stops at Opacity. Raise Opacity, or use Replace.
- "Replace erased part of my material." With a pattern, Replace drives the layer to 0 in the gaps of the pattern. Use Add to paint a pattern over existing coverage without cutting it.
- "The warning says to add a layer, but the terrain has layers." The same warning appears when the terrain is locked. Unlock it.
- "I changed the Tint (or Texture Scale) and another map changed too." The Material section edits the material itself, on every terrain that uses it.
- "My Opacity and pattern are still set from last time." They are remembered after a restart, on purpose. Untick Use a pattern and set Opacity / Blend Mode back if you want the plain brush.
- "My Radius went back to 10 after restarting." Radius, Strength and Falloff are kept for the session only.
- "Holding the mouse still does not paint more." Stamps are placed by distance, not by time. Drag back and forth.
- "Regenerating Auto Paint did not change what I painted." By design: manual paint stays on top. Use Restore Generated Paint or Clear Manual Paint.
- "The first click on ✕ did not remove the layer." A painted layer, or the first layer, needs a second click on Remove?.
- "The paint stops in a straight line." That is the edge of the loaded chunks: OFF chunks are never written. Turn them ON in the Chunks tab.
- "The panel disappeared when I selected something." Other selections have their own Inspector. Material Paint is still armed; select the terrain again.
Related tools
- Map workspace: the toolbar, its tool groups and Create the terrain.
- Terrain Auto Paint (toolbar Terrain): paints layers from rules and a palette of Surface Materials over the whole terrain. Its result is the generated paint your strokes sit on.
- Terrain Sculpt (Raise, Lower, Smooth, Flatten, Noise): shares Radius, Strength and Falloff with Material Paint.
- Erosion: reshapes slopes; paint after eroding so the surfaces follow the final ground.
- Cliff Mesh Paint: places rock models on steep faces, on top of the painted surface.
- Materials: the Surface Materials terrain layers are made of.
- Chunks tab: which chunks are ON and can be painted.
Verification notes
This chapter was written from the editor source only: the terrain-inspector component and template, TerrainPaintService (stroke, modifiers, freezing, commit, cancel, working-set lock), TerrainPaintStore and terrain-paint-preferences.ts (what is remembered), terrain-paint.ts (Add / Replace / Remove and Restore arithmetic), terrain-paint-pattern.ts (pattern fields, bounds, defaults), terrain-brush.ts and TerrainBrushStore, TerrainBrushService (ring, Esc), terrain-layer-asset.ts and TerrainLayerCommandsService (material limits and edits), TerrainCommandsService (manual paint, Clear Manual Paint), the layer picker and layer dialog templates, editor-inspector (panel routing), the Hierarchy terrain row, the toolbar catalog, the camera modifier override and docs/editor-input.md, docs/inspector-complexity.md, docs/terrain-texture-painting.md, docs/TERRAIN_MATERIAL_PAINTING_IMPLEMENTATION.md, and the en-US texts. Where the editor's own documents disagree with the code (they still describe strokes written straight into the weights; the code now stores them as manual paint above Auto Paint), this page follows the code. The following were not checked in a real run:
- what the Material Paint sections, the ring and painted ground look like (no screenshot of the panel was taken), and the colour of the ring;
- the exact wording and counts of the Show more footers;
- whether a single Esc pressed while the mouse button is still down reaches the editor during a drag;
- how many passes a typical surface needs with the default Strength;
- the exact appearance of each Falloff curve, pattern type and setting on real textures.