At the end of the Installation Instructions and Prerequisites, it is mentioned that :

There are a total of 3 basic renderer features required by ASP. Please be sure to add and enable the following renderer features in the renderer data: ASP Material Pass, ASP ShadowMap, and ASP Depth-Offset Shadow.


These 3 renderer features are 3 independent passes. This page will explain the purpose of these passes in detail.

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.

ASP Shadow Map Pass


When a character renderer's material uses the ASP/Character or ASP/Eye Shader, the shadows of these renderers will be written into the ASP Shadow Map. In other words, this is a shadow map that only contains characters, and does not contain shadows of dynamic or static objects that use other shaders.

Untitled

The ASP Shadow Map Renderer Feature provides some parameters for users to customize

Parameter Name Description
Character Shadow Map Resolution The size of the ASP Shadow Map, with three sizes to choose from: 1024x1048, 2048x2048, and 4096x4096
Clip Distance The farthest rendering distance of the ASP Shadow Map
Cascade Count The number of cascade of the Cascade Shadow Map, with support for up to 4 cascades.
Shaodw Fade Ratio The fade out level of the ASP Shadow Map, if set to 0 there will be no fade out at all, and when the distance from the camera exceeds the clip distance, you will see the shadow being clipped directly, the recommended setting is 0.5~1

ASP Depth Offset Shadow Pass