Jump to content

Slope based noise


Recommended Posts

Hi all,

We are working on a custom Houdini shader and want to add a layer of slope based dirt on top of the textures.
Right now we are importing the global variable 'N' into our Material network and are calculating the dot product between this 'N' and a constant vector of 0, 1, 0.
We then use this dot product as a bias value for a colormix node, as long as the dot product is positive we add dirt, else no dirt is added. (see screenshot 3)

This kind of works but when rotating the camera (see screenshots 1 and 2) the added dirt moves as well. It is allways in yUp as seen from the local camera.

Any Ideas how to fix this?

Thanks
Cyrill
 

1.JPG

2.JPG

3.JPG

Link to comment
Share on other sites

  • 2 weeks later...

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