Im wondering if there is a way to make a ramp shader similar to the facing ratio sampler shaders in maya that would create a ramp based on 2d sihouette rather than 3d internal topology.
I am doing non realistic illustrative rendering and the sampler type shaders arent giving me the effect i want.
Im trying to avoid added stress to our comping piple so at this point and looking to see if there is an in-maya solution.
Ive attached an image to demonstrate the idea
Ive played around with MR contour but I cant seem to figure out how to plug in the result to other useful channels of my shader network. It seems contour is a post process so it cant be plugged in the way i was hoping.
Has anyone ever tried anything like this? If i can figure it out id like to use it in conjuction with a light angle shader to basically make nicer toon shading than i am currently getting.
Thanks to anyone who can help !!!

Some sort of post processing is your only sane alternative here .Tough to be honest if the shape really is a cylinder then it may be solved but wont work so much for any other shapes. (you can also use modelling to do this)
See the problem is that rendering engines are solving the one sample in isolation of all other data. The renederer doesn’t know whats happening in the next pixel. So it can not readily do this kind of stuff without going insanely overboard on sampling needs, so when you’d get it to work, but STILL want to put the comp in place on grounds that its 40 times faster and ultimately you need to go comp anyway for most productions*.
Now nothing says Maya cant do this comp for you, just make maya render the image 2 times and filter the creeps out of the first render. But alas even tough its a VERY simple thing i would say most users would go screaming mad when i tell them how to do it. But again depends on who you are it is after all just a 1 minute do once and forget setup for anybody with moderate know how.
It seems contour is a post process
For the same kind of reason stated above contour is post process. Again it could be raytraced by taking the cube of your render time. But honestly no sane person would do that.
Post process is commonly known as compositioning app by the way. But yes you might be able to do with withe the glow post processor. But letting comp do it is saner since after all comp is just a post process that you have controll over.
*one can view comp as a half empty glass of a half full glass. Personally for me comp is allways a positive thing so i wouldn’t skip this step even if i could because it gives me so much flexibility for free.