Set proper uniform value for texture3D