Rim Shade
Rim Shade darkens or tints the outline area of a surface, where it turns away from the viewer. Use it to add depth and roundness to skin, clothing and hair without touching the lighting setup.
Rim Shade is the opposite of a Rim Light: instead of adding light at the edges, it multiplies the edge color by a shade color. It is applied after lighting and shadows, so it darkens the final lit color, and it is calculated from the camera direction, not from any light. In the inspector the section is called RimShade. It is not shown for the Gem rendering mode or in NekoToon Lite.
RimShade#
RimShade#
_UseRimShade on / off · default off
Turns the effect on. The remaining settings appear once it is enabled.
Color / Mask#
_RimShadeColor color · default (0.5, 0.5, 0.5, 1) _RimShadeMask texture · default white
The color field is the shade color: the surface color at the rim is multiplied by it, so mid grey (the default) halves the brightness and a darker or tinted color gives a stronger or colored edge (for example a warm reddish shade on skin). The color's alpha is the overall strength of the effect. The mask texture limits where the shade appears; only its red channel is used (white = full effect, black = none), and it follows the Main Color UV.
Normal Map Strength#
_RimShadeNormalStrength 0 – 1 · default 1
How much the normal map bends the rim. At 1 the rim follows the normal map details; at 0 it uses the smooth mesh normal. Only has an effect when a normal map is enabled.
Border#
_RimShadeBorder 0 – 1 · default 0.5
Where the shaded area starts. The rim value runs from 0 (surface facing the camera) to 1 (surface edge-on); pixels above the border get the shade. Raise it to keep the shade to a thin edge, lower it to spread the shade further toward the center.
Blur#
_RimShadeBlur 0 – 1 · default 1
Softness of the transition around the border. 0 gives a hard, cel-shaded edge; the default 1 gives a smooth gradient across the whole surface.
Fresnel Power#
_RimShadeFresnelPower 0.01 – 50 · default 1
Shapes the falloff of the rim value before the border is applied. Higher values push the shade toward the very edge of the silhouette; values below 1 spread it across more of the surface. The slider is non-linear so small values are easier to set.
A subtle setup for skin: shade color a slightly saturated darker tone of the skin, alpha around 0.3 to 0.5, Blur at 1. Use the mask to keep the shade off areas like the face if it makes them look dirty.