🦇 7. Character Shadow Setup Guide (1.3 Update 2025/11/15)
This page demonstrates how to use the ASP Character Panel to configure shadow casting and receiving for characters.
1. Preparation
- First, following the steps in 2️⃣ 2. Setup ASP Character Panel (Important), add the ASPCharacterPanel component to the character's root game object,

- Next, make sure that all required passes in the ASP Render Feature Check List are Active. If any are displayed as inactive or missing, it means that the corresponding renderer feature is not enabled in the current URP renderer data. Please follow the instructions in 1️⃣ 1. Installation Instructions and Prerequisites to configure URP rendering data.

- Confirm that all character materials use ASP/Character or ASP/Eye as their target shader. The ASP Character Panel synchronizes the Cube Proxy position, size, and enabled state to these materials.

2. Configuring Shadows
Return to the current character's ASP Character Panel and scroll to Shadow Behaviours. This category contains five expandable items:
| Item Name | Description |
|---|---|
| Rendering Layer Information | Inspect and set the layer and rendering layer mask for each renderer under the current character. |
| Built-In Shadow Casting Behaviour | Inspect and set whether each renderer under the current character casts shadows to the Unity built-in shadow map. |
| Built-In Shadow Receive Behaviour | Inspect and set whether each material under the current character receives shadows from the Unity built-in shadow map. |
| Depth Offset Shadow | Inspect and set whether each material under the current character receives depth offset shadows. |
| Cube Proxy Self-Shadow Removal | Configure the enabled state, center, and size of the Cube Proxy used to remove character self-shadowing. |
💡 ASP uses only the Cube Proxy to remove character self-shadowing. Keep Built-In Shadow Casting enabled so scene materials that support URP shadows receive the character's cast shadow.
2-1 Enable the Cube Proxy and Configure Shadow Receiving/Casting
For any character that uses an ASP Character Panel, open the Inspector and look for the Shadow Behaviours section.
Enable Cube Proxy Self-Shadow Removal.
In the rest of the Shadow Behaviours options, ensure the character is correctly set to receive and cast Unity’s built-in shadows (all indicators should appear green).

2-2 Turn On Gizmos and Adjust the Cube Proxy Center and Size
Turn on the Gizmos toggle in the Unity Editor.
Use Character Center Position Offset to adjust the cube’s center.
Use AABB Size to adjust the cube’s overall size.
💡 Size the Cube Proxy so it fully encloses the character without being unnecessarily large. The character will not receive shadows cast by objects inside this proxy.


2-3 Specify Body Parts That Cast and Receive Depth-Offset Shadow
First, verify the project's Rendering Layer Mask settings and the Depth Offset Shadow Renderer Feature.
1. Configure the Project's Rendering Layer Mask and Depth Offset Shadow Renderer Feature

- In the URP Global Setting, set up the Rendering Layer Mask.
- In Edit > Project Settings > URP Global Setting, add a new Rendering Layer Mask (Rendering Layers(3D)). name it a accordingly , such as: DepthOffsetShadowCaster.
- Set up the ASP Depth-Offset Shadow.
In the Project window, find the URP Renderer Data that stores all Renderer Features.
Expand the Renderer Features list and find ASP Depth-Offset Shadow.
In the panel, setup the layer and rendering layer mask for the depth-offset shadow.
💡 Please note that a Layer can only have a single Layer setting and cannot be multi-selected. However, Rendering Layer Masks can be multi-selected.

When you expand the Rendering Layer Information item in the ASP Character Panel, you will see the following information.

| Item Name | Description |
|---|---|
| Layer | Can be set in the Editor for each game object. Each game object can only have one layer, and layers are shared with the physics system. This makes layers inflexible |
| Rendering Layer Mask | Can be set independently for each renderer. Rendering Layer Masks can be multi-selected, which makes them more flexible. |
First, confirm the target layer and rendering layer mask of the Depth Offset Shadow above.
Then, set the layer value and rendering layer mask value for each renderer.
If the layer matches and the combination of the renderer's own rendering layer mask contains the value set by Depth Offset Shadow, then the renderer will cast a depth offset shadow.

⏭️ Go to next page → 3️⃣ 3. Character Rendering Example - Cel Shading