Actually, my guess is that `u_matspecular` is not if'd out because `u_matspecular.a` still is used even when `(gstate.materialupdate & 4) == 0`.  It could probably be commented out if `!doSpecular && !poweredDiffuse && (gstate.materialupdate & 4) == 0` but I'm not sure.  I don't know how it affects performance.

-[Unknown]