Jump to content

How do Mantra lights know which light shader to use?


Recommended Posts

I can dive into the light and see the hlight OP, and I see the relevant SOPs but I don't see where the light shader is wired up.  I can also expose the hidden render parameter for light shader but that just gives me a blank field.  How does a light know which light shader to use?

Also, are there any differences between light shaders between H8/H9 approaches?  I am mostly concerned with PBR backend.  I see in $HH/Vex/Light there are some light shaders assigning to the Cl variable but I'm not sure if that is specific to raytracing backend or if it applies to both raytracing backend and PBR backend.

Link to comment
Share on other sites

I think SOHO assigns the shader based on the renderer and the light properties, that allows Light Object to be the same and still support multiple renderers and shaders

this is done using SOHO light wranglers, for example this one is for standard light for Mantra, there is more for other lights like env, indirect, ...

$HFS/houdini/soho/python2.7/wranglers/HoudiniLightIFD.py

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...