I have a simple shader to export separated indirect and direct image planes.
#pragma hint clr color #pragma hint direct hidden #pragma hint indirect hidden surface sep_lighting(vector clr = 1; export vector direct = 0; export vector indirect = 0) { vector nn = frontface(normalize(N),I); Cf = 0; illuminance(P, nn, "categories", "direct") { shadow(Cl); direct += Cl * clr * dot(nn,normalize(L)); } illuminance(P, nn, "categories", "indirect") { indirect += Cl * clr; } Cf = direct; } [/CODE] But its indirect pass contents direct lighting ([i]/out/mantra1[/i] ROP in attached file): Another shader with Irradiance in Material VOP works perfectly ([i]/out/mantra2[/i] ROP): Mantra also prints warnings about constant and plastic but this shaders are not used here. I even checked the ifd. Where I was wrong? sep_lighting.hipnc