0
$\begingroup$

I want to use the filter nodes from Compositor in Material editor. For example, I want to apply a dilate filter to a noise texture. Is it possible? If not, is there a easy way to achieve this?

Thanks for any help?

$\endgroup$
1
$\begingroup$

Unfortunately, compositing nodes and shader nodes are not interchangeable.

There are some new shader nodes available in the 2.81 release, which include extra vector math and the ability to connect inputs to the mapping node.

If these are not adaptable to your needs, you will need to do what you want in the compositor. Using cycles, you can use the object and material indices to get a mask in the compositor allowing you to apply the dilate to a specific object/s.

While the object and material indices are not currently available in evee when compositing, they are available in the object info shader node. You could use layers to have one object separated from the scene so you can adjust it in the compositor before combining it into the final image.

$\endgroup$
  • $\begingroup$ Thanks for the reply. I do not understand your suggestions, I will explore 2.81 when it become official. Thanks again! $\endgroup$ – user1492549 Oct 26 at 23:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.