Jump to content

hairid attribute question for mantra


Recommended Posts

I tried to modify the textured hair shader in houdini 9.1. I want to make each hair different intensity of diffuse(looks more natural) via hairid attribute. some code:

surface newfur(xxx,xxx,xxx,int hairid = 0)

{

....

float randcolor = random(hairid);

...

final_color = Ka * ambient() + Kd * diff()...... + randcolor;

}

it seems the hairid works global, not based on each hairid.......but this hairid works for the fur style cvex.

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...