Guide · Workflows

Decals

A decal effect is a picture that sits on top of a texture set's base color but stays separate from it: a shirt logo, blush, a tattoo, freckles, or a symbol you want to switch on and off in game. On a Poiyomi target each decal exports into one of Poiyomi's four decal slots, so you can still move, hide or animate it in Unity. On other targets it is baked into the base color.

When to use a decal

Paint straight onto a layer when the detail is simply part of the texture. Make it a decal effect when you want to:

Decal slots exist on the Poiyomi Toon and Poiyomi PBR target shaders: decals 0 to 3. On every other target a decal is Baked, which still keeps it separate while you work.

Example: put a logo on a shirt

  1. Import the logo in the Assets drawer's Textures tab as a Base color texture. A PNG with a transparent background works best.
  2. Select the shirt's texture set in the Scene panel.
  3. In the logo's tile menu, choose Add as decal effect. Pawlette adds a decal effect in the first free slot, with the logo laid once over the whole UV square.
  4. The logo now covers the UV square, which is rarely where you want it. Click the decal in the Layers panel's Effects section to step into its stack, select the logo's fill layer, and set its Mapping to Planar in the Fill tab.
  5. Choose Set from view with the camera facing the chest, or drag the on-model handle, to place and size the logo.
  6. Choose Back to … above the stack to return to the shirt's own layers.

The logo is now its own decal. Turn it off with the switch on its row, or give it to one appearance only from its menu.

Example: paint blush

  1. Select the body's texture set, choose Add effect in the Effects section, then Decal. The new decal is empty, so nothing changes yet.
  2. Click the decal to step into it, and add a paint layer with +.
  3. Pick the Brush and a soft pink. In Tool Settings' Material tab, the decal has two channels:
    • Decal image: the decal's color;
    • Decal mask: where it shows. White shows the decal, black leaves the skin beneath.
    Keep both on, set the mask to full, and paint the cheeks. Lower the brush's opacity and build up softly.
  4. Click the decal's row in the Effects section again to select the decal itself, and tune it in Effect settings: lower Opacity % to tone it down, or set Blend to Multiply so it tints the skin rather than covering it.

Tip: paint the shape with the mask and keep the image a flat color. Then changing the color later is one fill, not a repaint.

Effect settings

Select the decal itself, by its row in the Effects section rather than a layer inside it, to show its settings where Tool Settings normally is:

SettingWhat it does
NameHow the decal is listed. Exported file listings use it too.
SlotWhich Poiyomi decal slot it exports into, or Baked. A slot another decal of the set uses shows as taken.
BlendHow it combines with the base color: Normal, Multiply, Screen, Overlay, Darken, Lighten, Linear Dodge (Add) or Subtract, as Poiyomi offers them.
Opacity %Scales the whole decal's coverage.
EmissionMakes the decal glow too, by this strength. 0 for none.
Placed or TiledWhere Poiyomi puts the decal image. See below.

Placed and tiled decals

In Pawlette you always paint a decal right on the model, where you want it to show. The placement only matters on export, where it decides which part of the texture set is written out as Poiyomi's decal image:

A small decal exported over the whole square wastes most of its image. If a decal only covers a patch, such as a chest logo, turn on Placed and fit the rectangle around it: the exported image is then sharper at the same file size. Decals imported from Unity keep the placement they had.

Export

With the Poiyomi Toon or Poiyomi PBR template, each slotted decal is written as decal-0 to decal-3, a PNG with the color in RGB and the mask in alpha. Its size is a power of two from 256 to 2048, chosen so it holds as many texels as the decal covers. The decal is left out of the main base-color texture, so Poiyomi does not apply it twice. A decal that is switched off is still exported, so you can turn it on in Unity.

In Unity, put the PNG in the material's matching Decal slot. Pawlette exports images only: Blend, Opacity %, Emission and the placement are material settings, so set them to match in Poiyomi. A decal imported from Unity already has them.

With any other template, decals are baked into the base color as you see them, and the Export Textures panel lists which ones it baked. See Exporting textures.