Jump to content
Bill Mill

How to Apply Material Based on Geometry Height

Recommended Posts

I want to apply a “dirt mask” only in part of my geometry considering its position (P.y) for that. Let’s say I have a 3 meters cube, I want to get a black color in the geometry part below 2 meters and a White color to the last meter.

 

"Rest Position" and "Global Variables" are not working because they are considering the camera position and not the one from geometry.

Share this post


Link to post
Share on other sites

You can use a Transform VOP to transform from space:current (camera space) to space:world or space:object, then use the result for your P.y lookup.

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

×