Skip to main content

Occlusion

Use a mesh to occlude the objects behind it

Select the material you want to turn into the occluder. In this example, we are editing the material attached to the occluderHead.

Attach a simple shader such as the Unlit Color to avoid spending too much processing time.

Unit Color Shader

Then disable Color Write and Alpha Write. This will render the depth but none of the color data, resulting in the objects behind this one being occluded.

Disable Color Write & Alpha Write