Arvtesh / UnityFx.Outline

Screen-space outlines for Unity3d.
MIT License
1.26k stars 90 forks source link

How to avoid drawing outline on other objects? #58

Open efeurun opened 2 years ago

efeurun commented 2 years ago

image

Hey, any way to avoid drawing on top of other objects? I.E. the couch also draws on top of player character in this screenshot.

Arvtesh commented 1 year ago

Try enabling depth testing in outline settings.

efeurun commented 1 year ago

Hey! Thanks for the response.

image

Enabling Depth Testing causes parts of the outline to be rendered on player instead of the object. Can't seem to make it completely ignore the player.

JamesMcGhee commented 1 year ago

@Arvtesh Clip on intersect I think is what a few other depth based outline tools call it

image

I have been shopping around as I haven't managed to sort the issue with URP Web GL build ... on the up side I have found other depth based outline tools with issues on Web GL 😄 .... ☹️