
274 Digital Lighting and Rendering
[Figure 9.22]
Too low a trace depth (left)
makes some objects seem
less transparent, whereas a
higher trace depth (right)
lets you see through all the
refractive objects.
Count how many surfaces you need to see through that are refractive, and
set the refraction limits on the shader. Set global limits on the number of
refraction steps to be high enough to see through all of the layers in your
scene.
The number of refractive steps will not limit a transparent surface that is not
refractive. If some of the transparent surfaces that you need to see through
don’t really need to refract, then make another glass shader ...