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