Page 1 of 1

Override material (Like V-Rays)

Posted: Thu Dec 19, 2019 9:43 pm
by Moonhowl
Hi all,

just wondering if someone made an OSL texture that would allow use of a secondary material for GI, for example like VRay's override material. It's a very useful feature. Would be great to have. Yeah.

Re: Override material (Like V-Rays)

Posted: Thu Dec 19, 2019 10:20 pm
by funk
If I'm understanding you correctly, this should be possible using OSL raytype

Check out a premade script here: viewtopic.php?f=21&t=71597
or viewtopic.php?f=87&t=67849

You could plug 2 different materials into a mix material node, then use the OSL script plugged into amount