This page will explain how different Received Shadow Behaviour impact the shadow color.

In the ASP character rendering shader, under the Diffuse/Lighting Behaviour (Ramp Shading) category, you can use different Received Shadow Behaviour to control the way the received shadow color is displayed.

Received Shadow Behaviour 說明
- Use Ramp End Use the color at the leftmost end of the Ramp Lighting Map as the shadow color.
- Color Use the Received Shadow Color as the shadow color.
- DarkenRampLightByColor Preserve the current pixel color and blend it with the Received Shadow Color to darken it.

1. Use Ramp End


All ASP characters use Ramp lighting Map to represent the changes of light/shadowed. Therefore, the default Received Shadow Behaviour is to use Use Ramp End - for the received shadow color, use the color at the leftmost end of the Ramp lighting Map to ensure consistency with the object's lighting result.

In the figure below, you can observe that the received shadow color is the same as the color at the far left of the Ramp Map.

Untitled

Untitled

2. Color


When Received Shadow Behaviour is set to Color, you can force the received shadow to be a specified color.

Untitled video - Made with Clipchamp (3).gif

Untitled

You can notice that in this example, there are jagged shadows on the left side of the sphere. This is because the color of the self-shadow does not match the color of the ramp lighting map. According to the instructions in Character Shadow Setup Guide (2-1), you can avoid self-shadow by disabling the built-in shadow caster of the current renderer.

Untitled

3.DarkenRampLightByColor


When using this mode, the received shadow color will be mixed with the specified Color to create a darkening effect. This is a solution that can show the received shadow while retaining the ramp lighting map’s lighting result.

Untitled video - Made with Clipchamp (4).gif

Untitled