Skip to content

NiloToon Renderer Feature

NiloToonAllInOneRendererFeature contains several useful settings. This page introduces the key ones.


Skybox Alpha Blend Issue

Note

This option does nothing when RenderGraph is enabled.

If any transparent material's blending background is Skybox, the result may flicker or be incorrect if the material renders before the Skybox (before Render Queue 2500), due to URP's Skybox rendering timing. In this case, enable EnableSkyboxDrawBeforeOpaque in NiloToon's Renderer Feature to provide a valid background for these materials to blend with.

Skybox Draw Before Opaque setting

If you do not need this Skybox redraw, disable it to improve performance.


Receive URP Shadow

If you want NiloToon characters to receive shadow map shadows from other shaders (e.g., Lit shader, Shader Graph shader), enable Should Receive URP Shadows in NiloToon's Renderer Feature. This allows NiloToon characters to receive the regular URP Shadow Map (receiving shadows from any shader that supports the ShadowCaster pass).

Note

By default, Should Receive URP Shadows is disabled because NiloToonSelfShadow is enabled.

Remove URP Self Shadow

To remove the character's URP self shadow while still receiving URP shadows from distant objects (e.g., buildings, houses, trees, buses, flying birds), use the following settings:

Setting Value Description
Depth Bias 2 2 = 2m Depth Bias, more than enough to remove all character self shadow
Normal Bias 0 0 = Disable Normal Bias. Prevents holes in the character's cast URP shadow

These settings prevent most URP self shadow from the character while still allowing the character to receive URP shadows from distant objects.

URP Shadow Bias settings