Made translucency code that is a little less spaghetti codey.