some performance improvement from using packed textures