NekoToonDocs Download

Base

Lighting

The Lighting section controls how much the world's lights may change the look of the material: how dark or bright it can get, how much the light color tints it, and where the light seems to come from.

NekoToon gathers the light reaching a material (the main directional light plus the world's ambient light probes) into one light color and one light direction. The settings below adjust that light before it is used for shading, shadows and effects. The section has two boxes: Base Setting and Advanced.

Keep the Lighting settings the same on every material of an avatar. If the face uses different limits from the body, they will have different brightness in some worlds, and the seams become visible.

Base Setting#

Lower brightness limit#

_LightMinLimit 0 – 1 · default 0.05

The darkest the light color is allowed to be. Each color channel of the light is clamped to at least this value, so the avatar stays visible in very dark worlds. Raise it (for example to 0.1 to 0.2) if your avatar turns pitch black in dark scenes. At 0 the material follows the world's darkness fully.

Upper brightness limit#

_LightMaxLimit 0 – 10 · default 1

The brightest the light color may get. At 1 the material never gets brighter than its own colors, which protects it from blowing out to white in over-lit worlds. Raise it if you want bright lights and bloom-heavy worlds to brighten the avatar beyond its base color. It also caps the brightness of point and spot lights.

Monochrome Lighting#

_MonochromeLighting 0 – 1 · default 0

Removes the color from the light. At 0 a red light makes the material red; at 1 only the light's brightness is used, so the material keeps its own colors under any colored lighting. Values around 0.5 keep a hint of the world's mood while protecting skin tones.

Environment strength on shadow color#

_ShadowEnvStrength 0 – 1 · default 0

Lets the world's ambient light lift the shadow color back toward the unshadowed base color. At 0 the shadow colors from the Shadow section are used as set. Higher values make shadows lighter in worlds with strong ambient light, which looks more natural in bright outdoor scenes. Only shown when the material has this property, and only has an effect with Shadow enabled.

Apply Preset#

Default · Semi-monochrome

Buttons that set all the lighting values at once. Default restores the project defaults from the shader settings, with Environment strength on shadow color set to 0. Out of the box these are As Unlit 0, Vertex Light Strength 0, lower limit 0.05, upper limit 1, Monochrome Lighting 0. Semi-monochrome uses the same values but with Monochrome Lighting 0.5, a common choice for avatars that should keep their colors in colored lighting.

Advanced#

As Unlit#

_AsUnlit 0 – 1 · default 0

Blends the light color toward plain white. At 1 the material ignores the world's lighting and shows its colors as they are (shadows from the Shadow section are still drawn), and point and spot lights are ignored too. A non-zero value makes the material look different in brightness from avatars and materials that do react to light, so the inspector shows a warning with a button that sets it back to 0.

Vertex Light Strength#

_VertexLightStrength 0 – 1 · default 0

Built-in render pipeline (VRChat) only. Unity draws less important point lights per vertex: lights set to Not Important, and lights beyond the pixel light limit. This value is how strongly those vertex lights are added to the main light, both color and direction. At the default 0 they are ignored. Set it to 1 on One Pass transparent materials, which have no other way to receive point lights.

Light Direction Override#

_LightDirectionOverride xyz vector + toggle · default (0.001, 0.002, 0.001), off

A direction added to the computed light direction. With a tiny vector (the default) it only matters when the world has no usable light direction, giving a soft light from slightly above. Use a longer vector, such as (0, 1, 0), to make the light seem to come from that direction regardless of the world. The length controls how strongly it wins over the real light. With Object direction following on, the vector rotates with the object, so the shading stays fixed relative to the avatar.

[Built-in RP] Alpha Boost (Point / Spot Light)#

_AlphaBoostFA 1 – 100 · default 10

Only shown for Transparent and non-cutout Fur materials. In the extra pass that adds point and spot lights, the light added to a pixel is multiplied by its alpha times this value, clamped to 1. The default 10 means anything above 10% alpha receives the full light, so faint edges are not left darker than the rest.

[Built-in RP] Light Blending#

_BlendOpFA Add · Max · default Max

How point and spot lights from the extra (ForwardAdd) pass combine with the material's base result. Max keeps whichever is brighter, so stacking several lights cannot blow the material out to white. Add adds them up, which is physically closer but can overexpose. This is the same property as BlendOp RGB under ForwardAdd in Rendering. If it holds any other value, the popup shows empty.

[HDRP] Before exposure limit#

_BeforeExposureLimit float · default 10000

HDRP only. Caps the light color before HDRP's camera exposure is applied, so extremely bright physical light values do not blow the material out. Has no effect in VRChat.

[HDRP] Directional Light Strength#

_lilDirectionalLightStrength 0 – 1 · default 1

HDRP only. Multiplies the strength of the main directional light before ambient light is added. Has no effect in VRChat.

VRChat worlds can force normal scene lighting through a global shader flag (_UdonForceSceneLighting). When a world sets it, NekoToon ignores the lower and upper limits, Monochrome Lighting and As Unlit for as long as the flag is on.

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.