>>290722207
You'll want your regular shader to write to the stencil buffer, then have your outline shader stencil test not equal to whatever value your regular shader wrote. I think xiexe shader has stencil buffer variants you can use.