Jump to content
whodini

check if shading point is in group

Recommended Posts

I have primitive groups set up in SOP level, something simple like a box with a voronoi fracture applied with the inside and outside primitive groups. How can I access this primitive group in shop context? I am trying to compare whether or not a shading point belongs to a specified group so I can create a mask.

I can create a attribute at sop level to store the group information on the points and that works, but I want to do this in the shop context because the geometry will be heavily subdivided and displaced and I need the accuracy. Any thoughts? 

Share this post


Link to post
Share on other sites

You can also use primitive attributes and access them in a shader which should give you the accuracy / sharpness that you expect.

-dennis

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

×