extension to easily handle transparency in three.js