|
@@ -83,7 +83,7 @@ func genUV():
|
|
|
var y = float(_y)
|
|
|
var x = float(_x)
|
|
|
var devider = float(resolution+1)
|
|
|
- uvs[v_idx] = Vector2(x/devider,y/devider)
|
|
|
+ uvs[v_idx] = Vector2(x/devider,1-(y/devider))
|
|
|
v_idx+=1
|
|
|
|
|
|
#for v_idx in range(0,(resolution+1) * (resolution+1)):
|
|
@@ -125,7 +125,7 @@ func genIndex():
|
|
|
func genSphereCoords():
|
|
|
var tl = TopoLoader.new()
|
|
|
add_child(tl)
|
|
|
- tl.open()
|
|
|
+ tl.open(latMin, lonMin)
|
|
|
tl.cacheArea(latMin, latMax, lonMin, lonMax)
|
|
|
var verts = PoolVector3Array()
|
|
|
var size = (resolution+1) * (resolution+1)#(lonMax-lonMin)*resolution * (latMax-latMin)*resolution
|