Make an object less translucent with depth

I'd like to try looking at realistic plant-like materials and related skin-like materials too, like rubber. I'd like the material to be more translucent near the surface, and less translucent (more opaque) as light penetrates deeper into the material.

One way of setting this up is with a mix shader that takes in both a Translucent shader and a Diffuse shader.


However, the way to mix them with the frac is throwing me off. In the Light Paths node is an option to use Ray Depth, but I don't know if this is accomplishing what I think it's going to, I can't tell exactly.

1 love
Reply
  • Martin Bergwerf replied

    Hi Sid,

    Yes you can use the Light Path Node with some Math to do that. See for instance this: https://blenderdiplom.com/en/tutorials/419-tutorial-absorption-in-cycles.html

    Easier would be to use Subsurface Scattering for that, instead of Translucency.

    1 love
  • Omar Domenech replied

    Also don't forget the role of lighting. Your lights have to be set in a way that get the best out of the material you're creating. You need that feedback as you're developing it as well. So shading and lighting go hand in hand. 

    1 love