This page will demonstrate how to use the ASP Character Panel to configure shadow casting and receiving for characters.


1. Preparation

  1. First, following the steps in Setup ASP Character Panel (Important), add the ASPCharacterPanel component to the character's root game object,

Untitled

  1. 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 Installation Instructions and Prerequisites to configure URP rendering data.

Untitled

  1. Then, confirm that all materials on the character have been changed to use ASP/Character(or ASP/Eye if needed) as material’s target Shader.

Untitled

2. Configuring Shadows

At this point, we are ready to start configuring character shadows. Back to the ASP Character Panel’s inspector for the current character and scroll down to the Shadow Behaviors category. This category contains four 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.
ASP Extra Shadow Behaviour Inspect and set whether each material under the current character receives shadows from the ASP character shadow map and depth offset shadows.

2-1 Exclude character from built-in shadow map.

2-2 Make other static objects in the scene to display character shadows

2-3 Control specific material to receive character shadows

2-4 Specify Parts of The Body to Cast and Receive Depth-Offset Shadow

<aside> ⏭️ Go to next page → Character Rendering Example - Cel Shading

</aside>