RGB+A "dual LPE" possible in Karma?

   112   0   0
User Avatar
Member
19 posts
Joined: June 2018
Offline
Hello

I'm wondering if the "dual LPE" syntax described in the OSL docs is supported in Karma?

OSL Light Path Expressions [github.com]
Good, you got your alpha channel as a separate AOV, but what if you want to put it in the actual alpha channel of an RGBA AOV? You can do that by appending your expression to the standard rgb expression for an AOV. Look at this example:

Output ("beauty.tif", "rgba", "C[SGs]*D*<Ts>*L !C<Ts>*B")
  • Quick Links