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. |
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.
When Received Shadow Behaviour is set to Color, you can force the received shadow to be a specified color.
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.
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.