Hi,
I have the need to render a boolean mask of a scene; an image with 0s for background/transparent pixels and 1s for "foreground pixels" (and no anti-aliasing, 1s or 0s). Of course, I could create a boolean mask myself from a normally-rendered scene... set the background color to black and replace rendered non-black pixels w/ 1s. However, it seems to me that the entire cull/render operation could be streamlined quite a bit with the end goal taken into account.
Can anyone recommend an efficient way to render a "boolean mask" directly? Forgive me if this is a common feature and I just don't know the lingo to find it.
Thanks,
Matthew