Per Light export issue from custom illuminance loop

   1785   2   1
User Avatar
Member
2 posts
Joined: 5月 2014
オフライン
Hello. Bumper into one problem. I made a custom Lambert shader (because i need to remap the result to make it looks more cartoony). And now I want to export the result to image plane per each light. The beauty looks good. But per light export is very strange(see image in attachment). In this case i used storelightexport() function. Is this a bug or illuminance node does not work with PBR now? Also, sample changes in lights spoils everything. Hipnc also included. Thanks.

Attachments:
per_light_v001.hipnc (299.6 KB)
per_light_issue.png (334.6 KB)

User Avatar
スタッフ
466 posts
Joined: 9月 2016
オフライン
In your “inline1” VOP inside the the custom illuminance, you can call getlightname() function without any argument - as long as it's inside the illuminance loop, it will give you the name of the current light name.
User Avatar
Member
2 posts
Joined: 5月 2014
オフライン
Yes. That's work. Thanks!
  • Quick Links