NekoToonDocs Download

Color

Main Color

The Main Color box sets the base look of the material: the albedo texture, a tint color, and optional color correction (HSV / Gamma and a gradation map) that can be limited to parts of the texture with a mask. Everything else (shadows, layers, reflections, emission) builds on top of this color.

Open it in the inspector under Color > Main Color / Alpha. The box itself is titled Main Color, or Main Color / Alpha when the material uses transparency (Cutout, Transparent and the Fur modes). The tiling, offset and scrolling of the main texture are set in the UV section, not here.

Main Color#

Color / Texture#

_MainTex texture · default white _Color HDR color · default (1, 1, 1, 1)

The main texture (RGB = color, A = transparency) and a color that multiplies it. The final base color is texture × color, so white leaves the texture unchanged and any other color tints it. The row is labelled Color in Opaque mode and Color / Alpha in modes that use transparency; there, the alpha of both the texture and the color feeds the material's transparency.

The color is HDR, so values above 1 brighten the texture, but they also brighten it in the shadow and can look washed out. For glowing parts use Emission instead.

In a transparent mode, if the assigned texture is not marked Alpha Is Transparency in its import settings, the inspector shows a warning with a fix button that turns the import option on. That option makes Unity fill the color of fully transparent pixels from their neighbours, which prevents dark or colored fringes on cut-out edges.

Color Adjust#

A foldout inside the Main Color box. Tone correction and the gradation map are applied to the main texture before it is multiplied by the Color above. Layers (Main Color 2nd / 3rd) are not affected.

Mask#

_MainColorAdjustMask texture, red channel · default white

Limits where the color adjustments apply. The shader blends between the original texture and the adjusted one using the red channel: white = fully adjusted, black = untouched. Use it to recolor only the hair or only the clothes on a texture atlas. Without a mask, the whole texture is adjusted. It is sampled with the main texture's UV.

HSV / Gamma#

Four sliders stored together in _MainTexHSVG (default 0, 1, 1, 1). The Reset button below them puts all four back to their defaults. The shader applies gamma first, then converts to HSV, shifts and scales it, and converts back.

Hue#

_MainTexHSVG.x -0.5 – 0.5 · default 0

Rotates every color around the color wheel. ±0.5 is half a turn (red becomes cyan). Gray, white and black pixels have no hue and do not change.

Saturation#

_MainTexHSVG.y 0 – 2 · default 1

Multiplies color intensity. 0 turns the texture grayscale, values above 1 make colors more vivid (the result is clamped, so very high values flatten detail).

Value#

_MainTexHSVG.z 0 – 2 · default 1

Multiplies brightness. 0 turns the texture black; above 1 brightens it, clamped so that the brightest channel cannot exceed 1.

Gamma#

_MainTexHSVG.w 0.01 – 2 · default 1

Raises each color channel to this power before the HSV step. Values below 1 lift dark areas (flatter, lighter look); values above 1 deepen mid-tones and shadows painted into the texture, adding contrast.

Gradation Map#

_MainGradationTex texture · default white _MainGradationStrength 0 – 1 · default 0

Recolors the texture through a horizontal gradient: for each channel, the shader looks up the gradient at the position given by that channel's value (dark values read the left end, bright values the right end) and takes the matching channel of the gradient. The slider blends between the original and the remapped color; at 0 the map is skipped. A gradient from a dark color to a light one makes a grayscale texture take on those colors, which is handy for recoloring without editing the texture.

When the strength is above 0, a gradient editor appears below the texture slot: pick the colors in the Color gradient field, then click Test to preview it as a temporary texture, or Save to write it as a PNG and assign it.

Click Save before you upload. A Test gradient is a temporary texture that is not saved as an asset, so it will not survive a reload or an upload.

Bake#

button

Writes the main texture with the current Color, HSV / Gamma and Gradation Map applied into a new PNG, assigns it as the main texture, and resets those settings to neutral (white color, default HSVG, gradation strength 0). The result looks the same but is cheaper to render. A main texture is required. If nothing would change, the inspector tells you there is nothing to bake.

For a finished avatar, baking the color adjustments is a free performance win. Keep the original texture so you can go back and change your mind.

Lite, Fake Shadow and Gem#

NekoToon Lite and the Fake Shadow shader only show the Color / Texture row. Color Adjust, the 2nd / 3rd layers and the Alpha Mask are not available there. In Gem mode the Main Color box also shows only the Color / Texture row.

NekoToon is a fork of lilToon by lilxyzw (MIT License). Fur styles are based on Xiexe's Unity Shaders (MIT). NekoToon and its documentation are made by Mora for 404NyanFound.