Outline
Outlines draw a solid-colored line around the model's silhouette and along creases, the inked look of anime and cel-shaded art. NekoToon draws them with an extra pass that renders a slightly inflated copy of the mesh with its front faces hidden, so only the "shell" sticking out behind the model is visible.
Turning outlines on#
Outlines are a separate shader variant, not a property: an outline material uses a shader with an extra outline pass. In the NekoToon inspector you switch between them with the Outline checkbox at the top of the Outline foldout (in the Advanced group). Ticking it swaps the material to the matching outline variant and keeps all other settings; unticking it swaps back.
The Outline foldout is not shown for the Refraction, Fur and Gem rendering modes, for the Fake Shadow and Overlay shaders, or when you select several materials that use different shaders at once. For the [Optional] shaders (such as the outline-only shaders below) the checkbox is replaced by a plain heading, because the shader itself decides whether it has an outline.
The outline pass draws the whole mesh a second time, so it roughly doubles the vertex cost of that material. That is fine for most avatars, but keep it in mind for very high-poly meshes, and consider turning it off on materials where it is not visible anyway (inside of the mouth, eyes, small accessories).
Color#
Color (texture and color)#
_OutlineTex texture (RGBA) · default white _OutlineColor HDR color · default (0.6, 0.56, 0.73, 1)
The outline color, multiplied by an optional texture (UV0 with the texture's own tiling and offset). Using a texture, often a darkened copy of the main texture, gives colored lines that match each part of the outfit instead of one flat color. For Cutout and Transparent modes the label reads Color / Alpha, and the alpha of color and texture fades or cuts the outline.
Angle / UV Animation#
_OutlineTex_ScrollRotate angle -180 – 180 · scroll x, y · rotate · default 0
Shown when the texture row is unfolded. Angle rotates the outline texture; Scroll and Rotate under UV Animation move or spin it over time, for animated or flowing outlines.
Hue / Saturation / Value / Gamma#
_OutlineTexHSVG Hue -0.5 – 0.5 · Saturation 0 – 2 · Value 0 – 2 · Gamma 0.01 – 2 · default (0, 1, 1, 1)
Tone correction for the outline texture. The usual trick is to put the main texture here and lower Value (and maybe raise Saturation) to get a darker, richer line color automatically. Reset returns all four to neutral.
Bake#
button
Writes the tone-corrected outline texture to a new PNG next to the material, assigns it as the outline texture and resets the tone correction. This saves a little shader work and makes the result visible in other tools. It asks first, and does nothing if there is no texture or no correction to bake.
Highlight#
A second color that replaces the outline on the side of the model facing the light, like a lit edge on the ink line.
Color / Alpha#
_OutlineLitColor HDR color · default (1, 0.2, 0, 0)
The highlight color; its alpha (separate slider) is the highlight strength. The default alpha is 0, which turns the highlight off and hides the remaining highlight settings.
Get color from Main#
_OutlineLitApplyTex on / off · default off
When on, the highlight color is multiplied by the outline texture color, so the highlight follows the colors of the outline texture instead of being one flat color.
Min / Max#
_OutlineLitScale default 10 _OutlineLitOffset default -8 · shown as Min 0.8, Max 0.9
Where the highlight starts and where it reaches full strength, measured by how directly the outline faces the light on screen (0 = facing away, 1 = facing the light). Moving Min down makes the highlight cover more of the outline; a small gap between Min and Max gives a hard edge, a large gap a soft fade. The inspector converts the two sliders into the stored scale and offset.
Receive Shadow#
_OutlineLitShadowReceive on / off · default off
When on, the highlight disappears where the outline is in a cast shadow from the main light.
Lighting#
Enable Lighting#
_OutlineEnableLighting 0 – 1 · default 1
How much the outline color is multiplied by the scene lighting. At 1 the outline darkens and brightens with the world like the rest of the model; at 0 it keeps its exact color everywhere, which can make it glow in dark worlds. The brightness is capped by Upper brightness limit in the Lighting settings, like the main surface.
Width#
Mask & Width#
_OutlineWidthMask texture (R) · default white _OutlineWidth 0 – 1 (type higher values once at 1) · default 0.08
The outline thickness, and a mask whose red channel scales it (black = no outline, white = full width). The width is in hundredths of the mesh's own units, so with a normally scaled avatar (1 unit = 1 m) the default 0.08 pushes the outline out by about 0.8 mm. If the slider is at its maximum you can type larger values.
The mask is read per vertex, not per pixel, so its detail is limited by how dense the mesh is. Use it to thin the line on the face, fingers and hair tips.
Typical avatar values are 0.05–0.15. Because the width is in mesh units, an avatar whose mesh or armature is scaled will have its outlines scaled too; if outlines look wildly too thick or invisible, check the scale of the mesh object.
Fix width by distance#
_OutlineFixWidth 0 – 1 · default 0.5
Thins the outline when the camera is close. At 1 the width is multiplied by the distance to the camera in metres whenever that is under 1 m, so the line keeps a roughly constant on-screen thickness up close (in mirrors or when someone leans in) instead of becoming a thick band. Beyond 1 m it has no effect. At 0 the outline has a fixed size in the world.
Vertex Color#
_OutlineVertexR2Width None | R -> Width | RGBA -> Normal & Width · default None
Lets the mesh's vertex colors control the outline. R -> Width multiplies the width by the vertex color's red channel. RGBA -> Normal & Width multiplies the width by the alpha channel and uses RGB as the direction the outline is pushed out (a tangent-space vector), which is how tools that bake smoothed normals into vertex colors fix broken outlines on hard edges. Only use these if your mesh actually has vertex colors painted for it; otherwise the outline may vanish or point the wrong way.
Remove zero width vertices#
_OutlineDeleteMesh on / off · default off
Throws away outline vertices whose final width is exactly 0 (from the mask or vertex color), so their triangles are not drawn at all. Turn it on if areas you masked out still show thin outline artifacts or flickering.
Z Bias#
_OutlineZBias number · default 0
Pushes the outline away from the camera by this distance (in the mesh's own units, not hundredths). A small positive value hides outlines that poke through the model where they shouldn't, such as on cheeks, inside the ear or around the eyes, while keeping the silhouette line.
Disable in VR#
_OutlineDisableInVR on / off · default off
Hides the outline when the material is rendered in VR (stereo rendering, or a camera with an off-centre projection such as a VR eye), while keeping it for desktop viewers and cameras. Useful if thin outlines shimmer or look doubled in a headset.
Direction#
Normal Map (outline direction)#
_OutlineVectorTex normal map · default flat _OutlineVectorScale -10 – 10 · default 1
A tangent-space normal map that replaces the direction the outline is pushed out from the mesh normal with the direction stored in the map. With a flat map the outline uses the normal as usual. The scale multiplies the map's strength. Like the width mask, it is read per vertex. If Vertex Color is set to RGBA -> Normal & Width, the vertex color direction wins.
UV Mode#
_OutlineVectorUVMode UV0 | UV1 | UV2 | UV3 · default UV0
Which UV channel the outline direction map is read from.
Rendering, stencil and outline-only shaders#
The outline pass has its own render-state settings (cull mode, ZWrite, ZTest, offset, color mask, AlphaToMask and blending) in Rendering; its cull mode defaults to Front, which is what produces the shell effect. Outline stencil options are in Stencil.
Outline-only shaders#
NekoToon Extras/[Optional] NekoToonOutlineOnly, …OutlineOnlyCutout, …OutlineOnlyTransparent
These shaders draw only the outline passes and no surface at all. Add them as an extra material on a mesh to give it an outline while its main material uses something else (another NekoToon variant without outline, or a different shader). They show the same Outline settings as above, without the on/off checkbox.
Lite shaders#
The Lite outline variants have a reduced set: Color (texture with UV animation), Enable Lighting, Mask & Width, Fix width by distance, Vertex Color, Remove zero width vertices and Z Bias. Tone correction, Highlight, Disable in VR and the direction map are not available.