Handle transparency and refraction.

If multiple transparent objects are nested, the refraction coefficient will be incorect.