Turn Pass 1 shader to singleton, and factorize the setUniforms.