that s happen when i don’t search a lot and just try
anyway i guess we have some benefit in rewrite that
and the way i collect pics have bigger space
actually we can use unity texture
i can find texture place
we need read this array
AR =
[1 , 4 , 12 , 5 , 5 ,
2 , 8 , 1 , 4 , 4 ,
3 , 10 , 5 , 6 , 2
4 , 6 , 8 , 7 , 6
5 , 5 , 6 , 12 , 12
6 , 2 , 3 , 9 , 8
7 , 1 , 11, 2, 10
8 , 8 , 3, 11 , 3
9 , 12 , 7 , 10 , 10 ,
10 , 11, 9 , 1, 1,
11 , 7 , 4 , 8 , 11 ,
12 , 3 , 2 , 3 , 7 ];
PX = [ 0 , 0 , 0 , 0 , 1 , 2 , 3 ,3 , 2 , 1, 1 , 1 ] ;
PY = [ 0 , 1 , 2 , 3 , 3 , 3 , 3 , 2 , 2, 2, 1, 0 ] ;
I = currentIndex
T = textureIndex
L = levelIndex
X = [0 , 2048 , 2048+1024, 2048 + 1024 + 512 , 2048 + 1024 + 512 + 256 ];
i = [ T * 5 + L ] ;
position : [ X[L] + px [ i ] * (1024 / L ) , py[ i ] * (1024 / L ) , 1024 / L , 1024 / L ] ;