• Advertisement
Sign in to follow this  

super simple cel shader

This topic is 2470 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm not very knowledgeable about shaders and/or the programmable graphics pipeline generally, but I'm looking to do something very basic. If I have a model that is almost entirely rectilinear -- like a lego block structure or something -- what's easiest way to render it cartoonishly, meaning flat color on the faces of the rectilinear model and the edges outlined in black. I know how to do this with textures but I figure this must be really easy to do with shaders. Can someone point me to a tutorial or some code somewhere?

Share this post


Link to post
Share on other sites
Advertisement
[quote name='marius1930' timestamp='1302978714' post='4799203']
[url="http://tinyurl.com/3rk6gy9"]This should answer your question[/url]
[/quote]

The thing is I'm not really looking for that sort of cel shader, it's just the closest thing to what I want that I can easily name. Basically what I want is a shader that will generate a solid wireframe render of the model where the edges of the model that are between two parallel faces are not shown, just the ones between faces that are at n degree angles or greater, where n is a constant. This has got to be really easy to do, and I thought maybe there was some tutorial somewhere that shows how to generate a solid wireframe like this as a sort of basic example before building on it to do something more complicated, but I couldn't such a basic example.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement