Jump to content

simple ramp based on the Y axis of the bounding box


Barakooda

Recommended Posts

I`m try to build simple shader to control the base color, using simple ramp based on the Y axis of the bounding box.

I will happy to see your way of doing it , better if it will stay only in the "shop" context.

----

right now i`m using point node and place "chramp" expration using ramp parameter in vopsop

B.

Edited by Barakooda
Link to comment
Share on other sites

I'd try to do this with a point attribute. A for each loop in a SOP could be used to assign values from zero to one relative to the size of the geometry in that loop iteration. The VOP SOP has nodes for both bounding box and fit range which should do most of what you need. Then call that attribute in the shader.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...