added some functions needed to set texture uniforms