Revert "Revert "alphatest""

This reverts commit b5867ebf1beecfd3b4ca6fb3c2e36b73c8fe4589.