Mask Outer Edges

mask outer edges
Is it possible through shader nodes? Must be a mask that can be utilized in shader, so no Freestyle or inverted hull, also no fresnel/dot product because constant width is needed

As far as I know, you can control Freestyle’s width, if you need to apply it only to contours.

image

image

image

Awesome! Can Freestyle components be read by shader nodes somehow?

As far as I know - nope, but you can edit its color, strokes, texture etc. exactly via Freestyle Line Style options tab

1 Like

That’s still something

You can also add some modifiers to your color. Maybe it’ll help you a bit more with what you want to achieve

image

P.S. You’ll be able to add these modifiers to the other options as well.

1 Like

There is an outline using Solidify. (fast rendering)

Freestyle Linesets… (bit slower rendering)

1 Like

Seems like @DeckardX08 wants to mask only the contour of an object.

It’s in the second video. :slightly_smiling_face:

And Free Addon for the outline
(The function of video number 1 is made into Addon.)

1 Like

why not use grease pencil line art? It’s realtime with tons of flexibility, you can colour and texture the silhouettes, use modifiers, effects or render it and use as animated mask in shader editor etc…

2 Likes

Inverted hulls is how I usually make the outlines. Problem is, I’d like to have this outline available in the shader, to use it as a mask for some operation like cutting out an alpha. Some parallax occlusion algorithms can alter sihlouette of the model, for example. I hope it makes sense

Thanks, I’ll look into advantages of GP outline