ShaderGen: fixed a uniform bug