Textureatlas function added,not work currently