rsd Posted March 15, 2013 Share Posted March 15, 2013 I have a simple shader to export separated indirect and direct image planes. #pragma hint clr color#pragma hint direct hidden#pragma hint indirect hiddensurfacesep_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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.