Minor optimization. Made sure to not call glUniformnf unless needed