edge detection shader

I assume sampler info would play a role here, but not sure how to do it since I need object instead of facing ratio because it can’t change when the cam moves.

Basically I have some beveled objects and I want to roughen up the edges without having to manually paint mattes in Zbrush since there are going to be many objects. Hence I need to dynamically generate mattes to use for displacement and textures.

Anyone know how to use sampler info or other utility nodes to detect the edges of objects and pass that to other shaders as grayscale values? I assume this would be based on curvature or how quickly an angle changes, etc.

Thanks

No Responses to “edge detection shader”

Post a Comment