[Mantra][Custom Shader] Diffuse for different light sources

   2329   0   1
User Avatar
Member
14 posts
Joined: July 2014
Offline
Hi guys!
Will try to ask there, odforce didn't help(for now).
So, I'm making my own shader from a scratch, for Micropoligon render engine. I've got 2 light sources in my scene. In my shader I need to make different passes(image planes) for diffuse light and specular for each of my lights. Have got H13 Apprentice. Will not use Mantra Surface Shader. Tried to make an Illuminance Loop(like there https://vimeo.com/2903326 [vimeo.com] ,include my file) - this scheme doesn't work for me - got empty pass for my specified light source. What should I do? Help me please with this issue. I want to have , and so on. But from scratch. And I'm using SHOP network, doesn't write code except for some inline code nodes.

Tried attached file from Mark's post in this thread - http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=11379&highlight=illuminance [sidefx.com] - per light passes are empty in my case.

Attachments:
ill_loop.hipnc (202.2 KB)

  • Quick Links