Alpha testing using discard

Because glAlpha functions have been deprecated since the addition of GLSL and don't exist in GLES, I changed alpha testing to use the GLSL `discard` keyword directly in the shader code.

This pull request also fixes misspelling of "transform" in certain places.