fixed not returning value in genTextureUVBuffer and cast atof to float