Here I am again, super excited about releasing another asset for the Unity Asset Store!  This one is a tiny little thing, but surprisingly took a long time to get polished enough to send out for general use.  It's an awesome-looking outline effect shader that integrates nicely with the Post Processing Stack v2 as an extension effect.

I work really hard to make the assets I build as easy to use as possible.  For example, in the Editor (while not even running the game) you can drag an object to the Post Liner Renderer component and see what the outlines would look like, and tweak everything to your liking, at your leisure.

I think it's also worth mentioning how many controls come with the Pro version.  Although the Free version is really quite nice, it's just what it is.  You can pick the color, and that's it.  If you want to make it match your game style, the Pro version is definitely the way to go.  For comparison:

Post Liner Free has very basic controls.
Post Liner Pro gives you a LOT more flexibility. For $5, it's worth it.

Great, but what do all these extra controls do in the Pro version?

  • The ability to set your own Fill Color, for starters.  That gives you control over the blend-to color for visible pixels of the highlight object.  It lets you bright up the brightness or change the color of the object you see.  You also get a Outline Color that affects visible pixels that form the edges of the object.
  • The Fill Color Hidden is similar, but only affects obscured pixels, which lets you do a kind of x-ray effect.  You also get Outline Color Hidden, which lets you pick the color of just the obscured pixels, in case you want to do a Super Mario Galaxy like effect, or for objects in a high density scene where things get lost easily.
  • The Topology controls are mostly about the exterior line weight of an object.
  • The Hard Edge controls are primarily the interior lines of an object, which sometimes help make it more obvious it's being highlighted.
  • Line Thickness is pretty much what it sounds like.
  • Error Tolerance and Topology Sensitivity give you control over how sensitive the shader is to depth and normals that produce bright pixels, in case it's too harsh or shimmers based on your Near/Far plane distances.  (There are math precision issues when you set them too far apart, in general, not just with this shader.)
  • The various Blend values let you decide how much each effect mixes into the final pixel color.
  • Finally, the various Depth Fading values let you dial in exactly where between the Near and Far plane each effect fades out, to prevent distance shimmer.

Overall, there's a whole ton of control here, and as far as I can tell, one of the few outline shaders written that integrates perfectly with the Post Effects Stack v2.

What about HDRP and LWRP?

To tell the truth, I haven't tested those yet as my projects are still using the native renderer.  I plan to in the near future, and as soon as I can, I will update this page.  It should probably just work, but I can't guarantee it because I haven't tried it personally.  Let me know if you try it before I do--I'd appreciate it!

How about some documentation?

I thought you'd never ask.  The PDF file is already in the Unity Package that you can get from the Asset Store, but if you want to grab the latest version, it's right here.

Got any videos?

Man, you guys are demanding.  I'm going to put together a couple that show me using all the sliders of the Pro version, so you can tell what they all do without having to read all those words I bothered to write in the documentation.  Ain't nobody got time for that, yo.

Any cat pics?

*This is not my cat. The Internet owns this one, apparently.