optimize texturing a bit