Now we will do things to draw lines of the character.
To enable lines in the level, we need to perform three main steps: 1) adding a post-process (PP) volume to the level, 2) Applying a PP line material to the PP volume, and 3) turning on the render customdepth pass switch of the character (or actor).
1) Adding a PP volume to the level
First, we add a PP volume to the level by drag-and-drop.
To make it affect all the scene, we make it unbound.
2) Applying a PP line material to the PP volume
Now we will apply a PP line material to the PP volume. Cartoon Rendering Pack provides a sample PP line material instance. But, in most cases, to control line width, amount, and colors, we’d better making a new material instance that will be used in a level. We will make PP_CRP_silhouette_and_crease_tutorial at Materials folder by duplicating PP_CharCelShading_silhouette_and_crease_Inst in CartoonRenderingPack\LineDrawing\Materials\MaterialInstances.
Then we put the PP line material to a blendable slot of the PP volume. To do so, we first need to add an element to the blendables array.
Then we make the element “Asset reference.”
Then we assign the PP line material PP_CRP_silhouette_and_crease_tutorial to the slot.
3) Turning on the render customdepth pass switch of the character (or actor).
Still, we cannot see the line drawing of the character. It is because the PP line material only works with the actors whose “render customdepth pass” switch is on. We now select the character and turn on the render customdepth pass switch.
Now we can see the line drawing of the character.