@kring will do a full review, but we should surround this code and uniforms/varyings in both shader stages with `#ifdef` like we do elsewhere in these files for performance (see `#ifdef APPLY_ALPHA`).