AnyPortrait > Getting Started > 2.3. Clipping Layer

2.3. Clipping Layer


1.0.0




When you open the mesh group, you can see that there is an arrow-shaped icon that is folded before the "Teeth" and "Tongue" meshes.
If you select the "Teeth" or "Tongue" mesh, you can see that the mesh is only partially rendered.
This is because the "Teeth" and "Tongue" meshes have Clipping Layer properties.
The Mask of the two meshes is the "Mouth" mesh just below.




As a test, let's turn off the clipping layer properties applied to the two meshes.
You will see that the image is rendered without any hidden parts.




The clipping function is to render only a portion of the mesh by specifying another mesh as the mask.
It is mainly used in eyes, mouth, etc.
However, please note the following.
1. The clipping function causes the process to be slow, so it slows down the game. Please use only necessary parts.
2. If you create and use a Custom Shader, you must also write code related to the clipping function.

To create a clipping shader, see the Related Page.