Jump to content

Random values for material inputs


Recommended Posts

Did you put $PT inside material parameter? If so, it won't work as $PT is a local variable meaningful only in SOPs' context. If you wan't to drive saturation per point, you have to create an attribute in SOPs, and bind it to shader parameter. Or use something what is available in shaders, like uv, prim number etc. 

Link to comment
Share on other sites

Thanks symek. I just really want a random number inside a range. That is all. It doesn't need to be tied to a point or anything. All I want is a random number inside a set range to drive my shader. The geo is part of a HDA, so I just want random variation on certain shader parameters every time another instance of the HDA is created. How do I do that then?

Edited by marque_pierre
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...