added support for transparency and refraction