Segmentation Material
Use Segmentation Material to quickly add commonly used segmentation effects to the scene. A segmentation material will automatically be created when adding segmentation objects.
Add Segmentation Material
You can add Segmentation Material by clicking the Add button [+] > Material > Segmentation Material in the Assets panel.
Segmentation Material Properties
Material Properties
![segmentation texture](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/segmentation_texture-260492daf6769c361913b5b0f3b9ecbb.png)
Segmentation Texture:
- Texture: Texture
![albedo](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/albedo-78a415ea9b55e5a02fce65306bc57b1a.png)
Albedo: Albedo is the diffused reflection of a surface. Think of it as the original color of the material without any lighting.
- Color: Set up the material’s Albedo color by the hexadecimal color code or by picking a color from the color wheel.
- Texture On: If selected, you can choose a texture as the material’s Albedo color. The color you set up will become the filter color of the texture.
![advanced](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/advanced-6dcc73ad6c33826328072dcec8ef0362.png)
Advanced Settings:
- Radius: How compact the segmentation is.
- Softness: How feathered the edge of the segmentation is.
Render State 0
![render state component](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/render_state_component-a6cbe30ee1d5d813cb041a61f5e32aed.png)
Depth Test: If selected, depth test should be performed and compared in the depth buffer.
Depth Write: If selected, the geometry depth is written to the depth buffer. Deselect it if you are rendering objects that are transparent.
Depth Function: Determine how the depth testing gets performed.
- Never: The depth test never passes and the object will never be rendered.
![depth function never](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_never-dfc1c395e3b8f8bea52f3916edddf65f.gif)
- Less: Draw the part of the object when it is in front of the existing objects and hide the parts that are behind the existing objects.
![depth function less](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_less-22df1ed1dd1d0fc29ab7cd3f3f24f293.gif)
- Equal: Draw the part of the object that is at the same depth as the existing objects and hide the parts that are in front or behind the existing objects.
- Less Equal: Draw the part of the object that is in front or at the same depth as the existing objects and hide the parts that are behind the existing objects.
![depth function less equal](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_less_equal-24fe2e6b7bb36242861de1ff1764bef6.gif)
- Greater: Draw the part of the object that is behind the existing objects, and hide the parts that are in front of the existing objects.
![depth function greater](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_greater-dec238baaaaccf4e65dc3b27385eb980.gif)
- Not Equal: Draw the part of the object that is not at the same depth as the existing objects.
![depth function not equal](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_not_equal-03eea3c447b064cef9015984892a2421.gif)
- Greater or Equal: Draw the part of the object that is behind or at the same depth as the existing objects and hide the parts that are in front of the existing objects.
![depth function greater equal](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_greater_equal-aa56218ce55fdd87a2dca972839a100b.gif)
- Always: The depth test always passes. Always render the object with the material.
![depth function always](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_function_always-e9c5c5816fc00db5f1046dbdcb242e45.gif)
Color Mask: If the following are left unselected, writing to the unselected channel into the render target will be stopped.
- R: Red
- G: Green
- B: Blue
- A: Alpha channels
![color mask property](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/color_mask_property-aa3b2f6d5433eec6b2b4ba3b6682a9c0.png)
Cull Mode: The polygon has front and back sides.
![cull mode property](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/cull_mode_property-70043eba7327564da82f0b1a308a18f8.png)
- None: Both inside and outside faces will render.
- Back: Polygons that face away from the viewer will not render.
- Front: Inside facing polygons will render.
Blend Mode instructs how the current material blends with the background. The default mode is Transparent.
![blend mode property](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/blend_mode_property-710233d79a5e30174ed4f6cb0bb89cb1.png)