only set uniforms if their passes are defined