Search Unity

Rendering Only Visible parts of Layer

Discussion in 'Image Effects' started by Deleted member 1123102, Apr 13, 2018.

  1. Hey everyone,
    Trying to apply a sobel filter to different objects, some behind others.

    Using a layer for each object color, but this means that if a part is occluded by another layer it still renders its outline.
    Is there any way around this? Render everything and output only pixels of a certain layer?

    Thanks