Studio Yotsuba
Back to Node List

Brick Pattern

brick_pattern

Generates regular brick, block wall, or floor tile patterns with mortar gaps, subtle color variation, and optional seamless wrapping.

Reviewed
Guide available

Input Ports

NameTypeDescription
Brick Color
brick_color
Color
Main brick or block color override.
Mortar Color
mortar_color
Color
Color used for gaps between bricks.

Output Ports

NameTypeDescription
Image
output
Image
Generated brick or block pattern image.
Surface
surface
Surface
Brick pattern as a Surface with height, AO, roughness, and material IDs.
Brick Regions
regions
RegionMap
Region map with one seed-independent stable region per brick and mortar as outside.
Boundary Mask
boundary
Image
White mask for mortar and gaps between pattern cells.

Parameters

NameTypeDefaultRangeDescription / Options
Layout
layout
Enum
Running—

How bricks or blocks are arranged.

  • RunningRunning
    Shift every other row like a common brick wall.
  • StackedStacked
    Align every row and column.
  • BasketBasket
    Alternate horizontal and vertical bricks; the long side is effectively two short sides plus one mortar gap.
Width
width
Int
1281–2048

Output image width.

Height
height
Int
1281–2048

Output image height.

Brick Width
brick_width
Int
321–512

Width of each brick.

Brick Height
brick_height
Int
161–512

Height of each brick.

Mortar
mortar
Int
20–128

Gap size between bricks.

Row Offset
row_offset
Int
16-512–512

Shown only for Running; shifts every other row horizontally.

Wrap X
wrap_x
Bool
false—

Fit whole brick periods to the output width so the left and right edges repeat without splitting brick colors.

Wrap Y
wrap_y
Bool
false—

Fit whole brick periods to the output height so the top and bottom edges repeat without partial rows.

Variation
variation
Float
0.180–1 / step 0.01

Amount of per-brick color variation.

Edge Shade
edge_shade
Float
0.120–1 / step 0.01

Darken brick edges to make blocks easier to read.

Seed
seed
Int
00–999999

Changes the color variation pattern.

Brick Color
brick_color
Color
[0.5799999833106995,0.3100000023841858,0.2199999988079071,1]—

Main brick color.

Alt Color
alt_color
Color
[0.8199999928474426,0.47999998927116394,0.3199999928474426,1]—

Color mixed into each brick by Variation.

Mortar Color
mortar_color
Color
[0.11999999731779099,0.10999999940395355,0.10000000149011612,1]—

Color of the gaps between bricks.

Brick Material ID
brick_material_id
Text
core:brick—

Material ID assigned to brick pixels in the Surface output.

Mortar Material ID
mortar_material_id
Text
core:stone—

Material ID assigned to mortar gaps in the Surface output.

Brick Surface Height
brick_height_value
Float
0.620–1 / step 0.01

Height value written to brick pixels.

Mortar Surface Height
mortar_height_value
Float
0.340–1 / step 0.01

Height value written to mortar gaps.

Brick AO
brick_ao
Float
0.960–1 / step 0.01

AO value for brick pixels.

Mortar AO
mortar_ao
Float
0.680–1 / step 0.01

AO value for mortar gaps.

Brick Roughness
brick_roughness
Float
0.780–1 / step 0.01

Roughness value for brick pixels.

Mortar Roughness
mortar_roughness
Float
0.90–1 / step 0.01

Roughness value for mortar gaps.

Overview

Creates regular patterns such as brickwork, block walls, and floor tiles. You can adjust mortar thickness, brick size, alternating row offsets, color variation, and edge shading.

Use Grid Pattern for a simple grid or rows of dots. Use this node when blocks and mortar are the main feature, as in a brick wall or stone paving.

Usage tips

  • For a tileable asset, turn wrap_x / wrap_y ON. Dimensions adjust automatically to whole brick periods so the edges join. Check the repeat with tile_preview.
  • Color uses a three-part setup: brick_color (base) + alt_color (variation color)
    • variation (mix amount). A variation of 0.1–0.3 gives a natural old-wall look.
  • To preserve a valid basket weave, Basket uses an effective long side equal to two short sides plus mortar. When correction is needed, the long-side parameter shows a warning and the effective dimension.
  • The surface output is powerful: bricks and mortar carry height, AO, and material IDs, so passing it through surface_light_preview immediately produces a wall with depth.
  • The regions output provides one region ID per brick and is an entry point to the region system. IDs are independent of the color-variation seed. Send it to region_* nodes to recolor or chip individual bricks.

Common pitfalls

  • Partial bricks are cut at the edges when tiled: wrap_x/y is OFF. Turn it ON to adjust dimensions to the pattern period. Conversely, OFF is the right call when you want a wall cropped through bricks at the edge.
  • The result looks flat: use edge_shade and light the surface output. Passing the surface through surface_light_preview is the quickest route instead of relying on the image output alone.
  • Surface edges still have relief at edge_shade = 0: edge_shade controls only image-color darkening. A separate fixed edge bevel remains in the Surface height and AO maps.

Compatibility

  • v4 makes Region IDs independent of the color-variation seed. Existing graphs that selected numeric IDs produced with a nonzero seed in v3 or earlier must select the updated IDs once.
  • v4 also corrects Basket output to a valid basket-weave ratio, so existing Basket results change appearance.
  • row_offset applies only to Running. It is not evaluated and is hidden in the Inspector for Stacked and Basket.

Examples

  • Create a brick wall with layout = Running, brick_width = 32, brick_height = 16, and row_offset = 16.
  • Create square floor tiles with layout = Stacked, brick_width = 16, and brick_height = 16.
  • For repeating floors and walls, set wrap_x = true and wrap_y = true. Brick and mortar dimensions fit the nearest whole number of periods in the output, and color variation remains continuous for the same brick across an edge.
  • With looping OFF, brick dimensions are used unchanged and cropped to the output, which also supports partial bricks at the edges.
  • Set mortar to 1–3 for joints that read clearly in pixel art.
  • Raise variation slightly to create an aged wall where each brick has a different color.
  • Connect surface to Surface Light Preview and inspect the brick relief created by the difference between brick_height_value and mortar_height_value.
  • Change the color and lighting response of core:brick and core:stone in the material definitions to inspect the preview contrast between bricks and mortar.

Related nodes

  • grid_pattern — a simple grid without mortar
  • region_pattern_assign / region_remap — process individual regions
  • surface_light_preview — light the surface output
  • tile_preview — check seamless looping
Back to Node List