set sampler uniform via raw mechanism
attempt at mipmap generation