Main Color 2nd / 3rd
Main Color 2nd and Main Color 3rd are two extra texture layers drawn on top of the main color. Use them for decals and logos, blush or makeup, patterns, or color overlays, without editing the main texture. Both layers have the same settings; this page describes the 2nd one, and the 3rd works the same way with Main3rd / Color3rd in the property names.
The layers sit inside Color > Main Color / Alpha, below the main color box. The 2nd layer is applied first and the 3rd on top of it. Both are blended before shading, so shadows darken them like the rest of the surface (see Enable Lighting). The layers are not available in NekoToon Lite, Fake Shadow or Gem.
Layer#
Main Color 2nd / Main Color 3rd#
_UseMain2ndTex / _UseMain3rdTex toggle · default off
Turns the layer on. When it is off, the shader skips the layer and its settings are hidden.
Color#
_Main2ndTex texture · default white _Color2nd HDR color · default (1, 1, 1, 1)
The layer's texture (RGB = color, A = opacity) multiplied by a color. With no texture, the layer is a solid color, which is useful together with a mask. The texture's alpha decides where the layer shows; a decal PNG with a transparent background only covers its own shape.
Alpha#
_Color2nd.a 0 – 1 · default 1
Overall opacity of the layer (the alpha of the Color above). Lower it to fade the whole layer in or out; it is also a convenient value to animate.
MSDF Texture#
_Main2ndTexIsMSDF toggle · default off
Treats the texture as a multi-channel signed distance field (MSDF) instead of a normal image. The shader rebuilds a sharp-edged shape from it and uses it as the layer's opacity with a white color (tint it with Color). MSDF textures keep text and logos crisp even at low resolution or up close. Only turn this on for textures that were generated as MSDF; a normal image will look wrong.
Cull Mode#
_Main2ndTex_Cull Off | Front | Back · default Off
Hides the layer on one side of the polygons. Front hides it on front faces, Back hides it on back faces, Off shows it on both. Useful on double-sided meshes such as skirts or capes, where a print should only be visible on the outside.
Enable Lighting#
_Main2ndEnableLighting 0 – 1 · default 1
How much of the layer goes through lighting. At 1 the layer is mixed into the base color before shading, so it is darkened by shadows and dim worlds like the rest of the material. At 0 it is mixed in after shading, so it keeps its own color regardless of light and shadow (it looks unlit, but it does not glow or bloom like emission). Values in between split the layer between the two.
Blending Mode#
_Main2ndTexBlendMode Normal | Add | Screen | Multiply · default Normal
How the layer's color combines with the color below, scaled by the layer's opacity. Normal paints over it, Add adds the colors (brightens, can clip to white), Screen brightens more softly, Multiply darkens (good for shading, dirt or tinting with a white-based texture).
Transparent Mode#
_Main2ndTexAlphaMode None | Replace | Multiply | Add | Subtract · default None
Lets the layer's opacity change the transparency of the whole material instead of just blending color. Replace uses the layer alpha as the material alpha, Multiply multiplies them, Add and Subtract add or subtract it. When any mode other than None is chosen, the layer's color is then applied at full strength. It only has an effect when the rendering mode is Cutout, Transparent or another mode with alpha; in Opaque it is ignored.
UV and Decal#
These settings decide where the layer's texture lands on the mesh. They are drawn by a shared decal block; a Reset button at the end puts all of them (UV mode, decal toggles, angle, animation) back to their defaults after a confirmation dialog.
UV Mode#
_Main2ndTex_UVMode UV0 | UV1 | UV2 | UV3 | MatCap · default UV0
Which UV set the layer uses. UV0 is the main UV map. Pick UV1–UV3 if the mesh has an extra UV channel laid out for decals. MatCap maps the texture by view-space normal direction like a MatCap, so it sticks to the screen rather than to the surface.
Tiling / Offset#
_Main2ndTex_ST shown when As Decal is off · default tiling (1, 1), offset (0, 0)
Standard Unity tiling and offset for the layer texture, used when the layer is not a decal. The texture repeats across the UV map.
As Decal#
_Main2ndTexIsDecal toggle · default off
Places the texture once, like a sticker, instead of tiling it. Outside the decal's square the layer is invisible. Turning it on replaces Tiling / Offset with the position and scale sliders below; turning it off also resets Mirror Mode and Copy Mode.
Mirror Mode#
_Main2ndTexIsLeftOnly, _Main2ndTexIsRightOnly, _Main2ndTexShouldFlipMirror Normal | Flip | Left Only | Right Only | Flip Right Only · default Normal
For meshes whose left and right halves share the same (mirrored) UVs. A decal there shows on both sides, and one side reads backwards. Flip flips it on the mirrored side so text reads correctly on both, Left Only / Right Only show it on one side, and Flip Right Only shows it on the right side only, flipped. The side is detected from the mesh tangents, so the mesh needs valid tangents.
Copy Mode#
_Main2ndTexShouldCopy, _Main2ndTexShouldFlipCopy Normal | Symmetry | Flip · default Normal
For UV maps where both halves of the model are laid out side by side (left half of the UV on one side of the body). Symmetry mirrors the UV across the center line so the decal appears on both halves at once; Flip does the same and also flips the copy. With a copy mode on, Position X is limited to 0.5–1.
Position X / Position Y#
_Main2ndTex_ST.zw 0 – 1 · default 0.5, 0.5
Where the center of the decal sits in UV space (0 = left/bottom, 1 = right/top). The inspector converts these to the texture's offset for you.
Scale X / Scale Y#
_Main2ndTex_ST.xy -1 – 1 · default 1, 1
Size of the decal as a fraction of the UV square. 1 covers the whole UV range, 0.1 is a tenth of it. Negative values flip the decal on that axis.
Angle#
_Main2ndTexAngle -180 – 180° · default 0
Rotates the texture (around the decal's center in decal mode).
Scroll / Rotate#
_Main2ndTex_ScrollRotate Scroll (x, y), Rotate · default 0
Animates the layer over time. Scroll moves the texture (or the decal) by that many UV units per second; Rotate spins it, in turns per second. Leave both at 0 for a static layer.
Animation#
_Main2ndTexDecalAnimation X Frames, Y Frames, Frames, FPS · default 1, 1, 1, 30 · decal only
Plays a flipbook from a texture atlas. Set how many frames the atlas has across (X Frames) and down (Y Frames), the total frame count (Frames), and the playback speed (FPS). Frames are read left to right, top to bottom. If the assigned texture is a .gif, a Convert Gif button appears that turns it into an atlas and fills these values in.
Ratio X / Ratio Y / Fix Border#
_Main2ndTexDecalSubParam 0 – 1 each · default 1, 1, 0 · decal only
Ratio X / Y set how much of each atlas cell is used (below 1 if the frames do not fill their cells). Fix Border pulls the sampling toward the center of each frame, which hides bleeding from neighbouring frames at the edges; raise it slightly if you see thin lines from the next frame.
Mask and Distance Fade#
Mask#
_Main2ndBlendMask texture, red channel · default white
Multiplies the layer's opacity: white shows the layer, black hides it. The mask uses the main texture's UV, not the layer's UV or decal placement, so you can paint it directly over the main texture layout (for example, to keep a pattern off the face).
Distance Fade#
_Main2ndDistanceFade Start Distance, End Distance, Strength · default 0.1, 0.01, 0
Fades the layer by distance between the viewer and the surface, in meters. The layer's opacity is multiplied by a factor that is 0 at Start Distance and 1 at End Distance, and Strength (0–1) controls how much that factor applies; at 0 (the default) nothing fades. With the default distances, the layer only shows when the viewer is closer than about 10 cm. Swap the two distances to make the layer disappear when the viewer gets close instead.
The fourth field in this row (Backface Force Shadow) belongs to a shared layout and is not read for the layers.
Dissolve#
Each layer has its own dissolve effect, separate from the material-wide Dissolve. It hides part of the layer and can add a glowing edge where the layer is being cut.
Dissolve Mode#
_Main2ndDissolveParams.x None | Alpha | UV | Position · default None
How the dissolve boundary is computed. Alpha compares a mask texture against Border. UV measures distance in the UV map from a point (or along a direction). Position does the same in the mesh's object space. Animate Border to make the layer appear or vanish.
Mask#
_Main2ndDissolveMask texture, red channel · default white · Alpha mode only
The grayscale map that drives the Alpha mode: pixels whose value is above Border stay visible, the rest are hidden. A noise or gradient texture gives a burn-away or wipe effect. It uses UV0 with its own tiling and offset.
Shape#
_Main2ndDissolveParams.y Point | Line · default Point · UV and Position modes
Point dissolves by distance from a position (a growing circle or sphere). Line dissolves along a direction (a moving straight edge).
Position / Vector#
_Main2ndDissolvePos vector · default (0, 0, 0, 0)
The point (Shape = Point) or direction (Shape = Line) used by UV and Position modes. In UV mode it has two components (UV coordinates); in Position mode three (object-space position or direction).
Border#
_Main2ndDissolveParams.z Alpha mode: -1 – 2 · default 0.5
The threshold where the layer is cut. In Alpha mode it is compared with the mask value; in UV and Position modes it is a distance (UV units or object-space units). Parts below the threshold are hidden.
Blur#
_Main2ndDissolveParams.w Alpha mode: 0 – 1 · default 0.1
Width of the glowing band along the cut edge. The cut itself stays hard; Blur only sets how far the edge color spreads to either side of it.
Noise#
_Main2ndDissolveNoiseMask texture, red channel · default gray _Main2ndDissolveNoiseStrength default 0.1 _Main2ndDissolveNoiseMask_ScrollRotate scroll
Adds a noise texture to the dissolve value so the edge becomes irregular instead of a clean line or circle. The number next to the texture sets how strong the distortion is, and the scroll values move the noise over time for a flickering edge. Mid-gray means no change.
Color#
_Main2ndDissolveColor HDR color · default white
Color of the edge band. It is added as emission, so it glows and is visible in the dark; set it to black for a cut without a glowing edge.
Bake#
Bake#
button
Merges this layer (together with the main Color and color adjustments) into a new main texture PNG, then turns the layer off and clears its texture. Use it when a layer is final and does not need to animate; it saves a texture sample and blending work. A main texture must be assigned.
The bake is done in the main texture's UV space without lighting or time, so scrolling, flipbook animation, dissolve, distance fade, Cull Mode and Enable Lighting are not carried over. It gives the expected result for a static layer on UV0.
Typical uses: a logo or tattoo as a decal on Main Color 2nd with a transparent PNG; blush on the face as a layer in Multiply or Normal mode with a soft mask; a pattern that only shows on certain parts, using the Mask painted over the main texture layout. Toggling _UseMain2ndTex or animating _Color2nd alpha from an animation is a simple way to make outfit or makeup toggles.
Baking is destructive in the sense that it changes the material: the layer is switched off and its texture slot is cleared. Undo works right after baking, but keep a copy of the material if you might want to edit the layer later.