Jump to content
Sign in to follow this  

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?





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