Rim Light
Rim Light adds a band of color along the edges of the model as seen from the camera, where the surface turns away from you. It separates a character from the background and gives a backlit, anime-style look. NekoToon can also make the rim follow the light direction, with a second "indirect" rim on the shadow side.
The rim is computed from the angle between the surface and the view direction (a Fresnel term), so it moves with the camera. For a darkening edge instead of a bright one, see Rim Shade. For light shining through thin parts from behind, see Backlight.
Rim Light#
Rim Light#
_UseRim on / off · default off
Turns the rim light on. All other settings appear only while it is on.
Color / Mask#
_RimColorTex texture (RGBA) · default white _RimColor HDR color · default (0.66, 0.5, 0.48, 1)
The rim color, and an optional texture (sampled with the main UV) that is multiplied with it. Use the texture as a mask to keep the rim off areas like the face or to color it per part; its alpha also scales the rim. The color is HDR, so it can be pushed above 1 for a glowing edge.
Alpha#
_RimColor.a 0 – 1 · default 1
The rim color's alpha as its own slider: the overall strength of the rim.
Main Color Power#
_RimMainStrength 0 – 1 · default 0
Tints the rim by the surface's main color. At 1 the rim becomes a brighter version of whatever it sits on, which looks more natural on multi-colored outfits.
Enable Lighting#
_RimEnableLighting 0 – 1 · default 1
How much the rim is multiplied by the light color. At 1 it dims in dark worlds and picks up the lights' color; at 0 it stays at full brightness everywhere, which reads as a glow.
Shadow Mask#
_RimShadowMask 0 – 1 · default 0.5
Fades the rim on parts of the model that are in shadow. At 1 the rim only appears on the lit side; at 0 shadows have no effect.
Backface Mask#
_RimBackfaceMask on / off · default on
Hides the rim on back faces (the inside of double-sided clothing), where an edge glow usually looks wrong.
Apply Transparency#
_RimApplyTransparency on / off · default on
Only shown for transparent rendering modes. When on, the rim is faded by the main color's alpha; turn it off to keep a visible edge on almost invisible glass or ghost effects.
Blending Mode#
_RimBlendMode Normal | Add | Screen | Multiply · default Add
How the rim color is combined with the surface. Add brightens (the usual rim light), Screen brightens more softly, Normal paints the rim color over the surface, and Multiply darkens it.
Light direction#
These settings make the rim react to where the main light comes from. With Light direction strength at 0, only Border and Blur are shown; above 0 the full set below appears.
Light direction strength#
_RimDirStrength 0 – 1 · default 0
At 0 the rim is equally strong all around the silhouette. Raising it restricts the main rim to the side facing the light and, at the same time, fades in the indirect rim on the opposite side. At 1 the effect is fully directional.
Direct light width#
_RimDirRange -1 – 1 · default 0
How far the main rim reaches around from the lit side toward the shadow side. Positive values let it wrap further around; negative values keep it tight to the side directly facing the light.
Border#
_RimBorder 0 – 1 · default 0.5 (slider shows 1 − value)
Where the rim starts. Higher values make the rim band wider, reaching further in from the silhouette; lower values keep it to a thin edge. The slider is inverted on purpose: the stored value is the Fresnel threshold, and the inspector shows 1 minus it so that "more" means "wider".
Blur#
_RimBlur 0 – 1 · default 0.65
Softness of the rim's inner edge. At 0 the rim has a hard, cel-shaded edge; higher values fade it gradually into the surface.
Indirect light width#
_RimIndirRange -1 – 1 · default 0
Like Direct light width, but for the indirect rim on the side facing away from the light. Positive values let it spread further toward the lit side.
Color (indirect)#
_RimIndirColor HDR color · default (1, 1, 1, 1)
Color of the indirect rim. Its alpha is the indirect rim's strength; set the alpha to 0 if you want only the directional main rim. The Color / Mask texture also multiplies this color, but Main Color Power does not.
Border (indirect)#
_RimIndirBorder 0 – 1 · default 0.5 (slider shows 1 − value)
Width of the indirect rim, inverted the same way as the main Border: higher is wider.
Blur (indirect)#
_RimIndirBlur 0 – 1 · default 0.1
Softness of the indirect rim's edge. The low default gives it a crisp toon look.
Shape#
Normal Map Strength#
_RimNormalStrength 0 – 1 · default 1
How much the material's normal maps affect the rim. At 1 surface detail breaks up the rim; at 0 it follows the smooth mesh. No effect without a normal map.
Fresnel Power#
_RimFresnelPower 0.01 – 50 · default 3.5
How quickly the rim falls off from the silhouette. Higher values concentrate it in a thin line right at the edge; low values spread it over most of the surface. Border and Blur then cut and soften this falloff.
VR Parallax Strength#
_RimVRParallaxStrength 0 – 1 · default 1
Only matters in VR. At 1 each eye calculates the rim from its own position; at 0 both eyes use the point between them, so the rim looks the same in both eyes. Lower it if the rim shimmers or looks different per eye.
For a clean anime rim: Light direction strength around 0.5–1, low Blur, Border around 0.3–0.5, Enable Lighting at 1 so the rim disappears in dark worlds instead of glowing. Shadow Mask keeps it off the shaded side.
Lite shaders#
The Lite variants have a reduced Rim Light: Rim Light toggle, Color (_RimColor), Shadow Mask, Border, Blur and Fresnel Power, with the same meaning as above. The rim is always added and always lit, and where it appears is controlled by the green channel of the Lite TriMask (Mat/Rim/Emi) texture.