* Solved bug in texture generation