Jump to content
Sign in to follow this  
Nicholas Ralabate

Question about hair shader source

Recommended Posts

Posted (edited)

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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this