📝 About ASP’s Render Passes
At the end of the 1️⃣ 1. Installation Instructions and Prerequisites, it is mentioned that :
ASP requires two basic renderer features. Add and enable ASP Material Pass and ASP Depth-Offset Shadow in the renderer data.
These two renderer features are independent passes. This page explains their purpose. Character self-shadowing is handled by the Cube Proxy in the ASP/Character and ASP/Eye shaders, so it does not require another render pass.
Material Pass
Whenever a material of the character renderer uses ASP/Character or ASP/Eye as its target shader, that renderer will be rendered into the Material Pass.
The Material Pass’s render result is a RGBA32 texture:
| Channel | Data | Description |
|---|---|---|
| R | Material ID | For all ASP material of the character, the ASP Character Panel will assign an independent per-material ID. |
| G | Color Luminance | The color brightness of the renderer's albedo (including albedo map), which is a grayscale of color from 0 to 1. |
| B | Outline Weight | B channel value of Vertex Color, if set to 0, the outline will be forced to not be displayed. |
| A | None | Reserved for self-expansion. |
Material ID is very important. For example, screen-space outlines and other post-processing effects (such as tone mapping) rely on material IDs to correctly identify pixels belonging to ASP-rendered characters. This allows for the application of specific effects to those pixels, or optimizations by skipping pixels that don't require those effects.
In addition, the Material Pass also writes a separate depth map for the renderer. This is necessary because screen space shaders, like screen space outline, need depth information to determine if there are other objects (using non-ASP materials) in front of the character. Only then can they correctly apply the occlusion logic. This is also why screen space outline cannot be applied to translucent objects – they simply don't provide the depth data that these operation require.
Cube Proxy Self-Shadow Removal
The ASP Character Shadow Map Renderer Feature has been removed. Characters continue casting Unity's built-in shadows, so scene materials receive their shadows normally. ASP character materials sample Unity's main-light shadow map at the surface of a Cube Proxy enclosing the character, excluding self-shadowing caused by geometry inside that cube.

Enable Cube Proxy Self-Shadow Removal in the ASP Character Panel, then adjust Character Center Position Offset and Self Shadow Cutoff AABB Size until the proxy fully encloses the character.
ASP Depth Offset Shadow Pass
The forehead part of the character rendering in anime character usually has more detailed hair shadows, which is difficult to reproduce with traditional shadow maps.
At the same time, because ASP rendered characters usually do not have self-shadowing (especially on the face), we render the depth of hair that meet the set Layer and rendering layer mask to an RT, and sample this depth after offsetting it. By doing so, we get hair shadows on the face. The Depth Offset Shadow can be use to give character extra detail such as hair shadow, cloth shadow on the thigh..etc.

💡 If the same material is both the caster and receiver of a depth offset shadow, the ASP shader will use the material ID to avoid self-shadowing. Therefore, the same material will not receive the depth offset shadow cast by itself.