Jump to content

Question about hair shader source


Recommended Posts

Hi all,

 

I am trying to level up my Mantra knowledge by digging into the source code for some of the shading VOPs I use all the time.  I am a bit stuck though on two things:

 

1.  When I right click and choose "Type Properties" on pbrhair_tt I see that it calls the VEX function hair(), but when I look at the source code for that function (in $HH/vex/Surface) it in turn is calling wireblinn() and wirediffuse().  I cannot find the definition for those two files anywhere.  Where should I be looking?

2. I see that there is a hair_eval.vfl and a hair_sample.vfl in $HH/vex/CVex...  these seem to define the bsdf, but I don't understand the connection of the hair() function mentioned above and this bsdf function.  How do they call each other?  Or is Mantra in charge of calling them both separately, in which case how does the shading VOP know to associate these two things?

 

I really appreciate any leads, this isn't a production thing I'm just super curious and spelunking around trying to make connections.

 

Edited by xxyxxy
paths
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...