properly set the sampler uniform