Added alpha-testing trick from Wolfire.