Jump to content

Thickness mask to @Cd


avizzle

Recommended Posts

Hello all, I'm trying to find a way to create a thickness mask - I'd like to use it on a mesh surface to generate a faked subsurface look.  My general idea is that I would fire a ray from the camera position to each point of the mesh, then measure the distance to the next surface each ray hits.  I'm sure you could then fit range that, and store it in @Cd or a custom float attribute.  Does anyone have any hints on how to go about that (or maybe there is already a prebuilt method of doing so?).

Thanks!

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...