Cavity OSL shader download

Hi everyone. There is a little shader I made for myself. Feel free to share.
It’s pretty much like “Dirty vertex colors”, but procedural, smoother, and most important (for me) - have 0.5 gray color as middle.
Cavity shader






3 Likes

this is nice, thanks… baking something right now

Thanks a lot oguretz for this very useful node!
Friendly.
Spirou4D

Heh, I see you have the same problem I have, that the shader doesn’t deal with object intersections very well. :stuck_out_tongue:

Can you attach a screenshot of this problem?

Uh, sure.
http://dl.dropbox.com/s/6fd7czupcb4tgyf/Screenshot%202015-03-11%2008.07.08.jpg?dl=0

Booleans offer a quick fix, but they’re not practical on highpoly models with many objects.