marque_pierre Posted September 12, 2017 Share Posted September 12, 2017 (edited) Hello guys, I am trying to build a shader, that in addition to what I have in the image, layers a black and white gradient in along the Y-axis. I am certain it must be very straight forward for anybody with more than a week of Houdini experience. Could anybody please point me in the right direction or outline the steps? Thanks in advance! Edited September 12, 2017 by marque_pierre Quote Link to comment Share on other sites More sharing options...
blushan Posted September 12, 2017 Share Posted September 12, 2017 Quick answer while waiting for render at work. Grab the global var P, transform it from current-space to world-space and grab the Y component. My example here is hard set to a certain range in world-space, the const1-node. That would mean your trees in your scene would all have the same ramp, no matter the individual height of the tree. You could probably plug the fit1 directly in to the multiply2, I just have a ramp-parameter cause it was easier to read what's going on with the colors. 2 Quote Link to comment Share on other sites More sharing options...
f1480187 Posted September 12, 2017 Share Posted September 12, 2017 You could make relative height gradient (in 0..1 range) like this. 2 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.