cyrill Posted August 23, 2017 Share Posted August 23, 2017 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 Quote Link to comment Share on other sites More sharing options...
3dome Posted August 23, 2017 Share Posted August 23, 2017 try transforming the up vector into world space Quote Link to comment Share on other sites More sharing options...
cyrill Posted September 4, 2017 Author Share Posted September 4, 2017 got it to work Besten Dank Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.