Closed STARasGAMES closed 3 years ago
Hm, that;s an interesting request. Could you describe a situations where it might be useful?
For example, player has a shield. And we want to show him that he can hang this shield on the wall by outlining invisible(completely transparent) copy of the shield that already hanging on the wall. Does it make sense?
Yes, makes sense. I'll add some kind of a switch to enabled that.
It's potentially a good feature to be able to render outlines for invisible objects.
The easiest way to make object invisible is to disable the renderer component, but UnityFx.Outline ignores such renderers.
The second way is to remove all materials from renderer (what I previously was doing with another outline asset), but again, UnityFx.Outline just ignores such renderers.
As a workaround, I'm replacing empty materials with material, that draws nothing. Here is the shader code for this:
But maybe it makes sense to support this natively.