Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Textures and Materials

Occluder

You can use any 3D model with Occluder to hide pieces of geometry in your scene. Occluder will hide what is behind the object and show the camera input. When you add a Head Tracker to the scene, the head object with Occluder can hide the part inside the Hat model guide.

unaligned-image-0
unaligned-image-1

Create an Occluder material

In the Assets panel, select + Add asset > Material > Occuluder.

Apply the material

Select any scene object that has a Mesh Render component. Set the Material property to the Occluder material you created in the Inspector panel.

Occluder properties

Render State 0

Depth Test: If checked, depth test should be performed and compared in the depth buffer.

Depth Write: If checked, the geometry depth is written to the depth buffer. Uncheck it if you are rendering objects that are transparent.

Depth Function: Determine how the depth testing gets performed.

  • Default: Less Equal.
  • Never: The depth test never passes and the object will never be rendered.
  • 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.
  • 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.
  • 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.
  • Not Equal: Draw the part of the object that is not at the same depth as the existing objects.
  • 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.
  • Always: The depth test always passes. Always render the object with the material.

Color Mask: R: Red G: Green B: Blue, and A: Alpha channels. If unchecked, it will be prevented from writing to the unchecked channel into the render target.

Cull Mode: Polygon has front and back sides.

  • Default: Back
  • None mode will make both inside and outside faces renderer.
  • Back: If you choose Back, it won’t render polygons that face away from the viewer.
  • Front means rendering inside facing polygons.

Blend Mode will instruct how the current material will blend with the background.

  • Default: Transparent