🦇 6. Setup Character Shadow - ASP’s Shadow Solution (1.3 Update 2025/11/15)
Before setting up shadows, this page explains why ASP uses a Cube Proxy to remove character self-shadowing.
💡 ASP no longer includes an additional Character-Only Shadow Map. The Cube Proxy is the only ASP method for removing character self-shadowing and requires no extra renderer feature or shadow map.
Self-shadowing problems of cel-shading characters
In general, when using the built-in shadow map, the self-shadowing effect on the character is not ideal. This is because the size of the shadow map is limited - the same shadow map must be able to contain the entire scene, and the characters in the scene usually only occupy a very small part of the shadow map (even with Unity's built-in 4-layer Cascaded Shadow Map, it is still not enough).

In the image above, the shadows cast by the hair and face mesh will produce undesirable self-shadowing on themselves because the shadow map is not large enough.
Simply changing the ShadowCaster of the hair and face mesh to Off can avoid the self-shadowing from the face and hair, but the character's shadow on the ground will also be missing the face and hair.

Self-Shadow Removal – Cube Proxy

How it works :
In the character shadow algorithm used in Gravity Rush (PS Vita version), the character does not sample the shadow map using the current pixel’s world-space position.
Instead, the system wraps the character with a virtual proxy cube that fully contains the entire model.
During rendering, the character shader traces outward from the surface of this cube toward the light direction, finds the first intersection point between the cube surface and the light source, and uses only that hit point to sample the shadow map.
With this setup:
✔ The character produces no self-shadow at all
Because the sampling position always comes from the cube’s outer surface, none of the character’s internal surfaces participate in self-shadowing.
✔ The character can still receive shadows cast by external objects
Objects outside the cube can still block the light, so shadows from the environment are still rendered correctly on the character.
💡 This method does not render an additional character-only shadow map, so setup is simpler and both shadow drawing and texture sampling costs are reduced.
Screen-Space Depth-Offset Shadows
The Cube Proxy removes the character's own shadow details. ASP therefore provides an additional pass that relies on an offset depth buffer to create stylized shadows on the face and body, such as hair shadows on the face.

On the next page, I will demonstrate how to use the ASP Character Panel to quickly setup shadows for character in the Unity editor.
⏭️ Go to next page → 🦇 7. Character Shadow Setup Guide (1.3 Update 2025/11/15)