|
@@ -13,7 +13,12 @@ func loadTexture(lat, lon):
|
|
lon = int(lon)
|
|
lon = int(lon)
|
|
var texName = getTexName(lat, lon)
|
|
var texName = getTexName(lat, lon)
|
|
print(texName)
|
|
print(texName)
|
|
- var tex = load(texName)
|
|
|
|
|
|
+ var image = Image.new()
|
|
|
|
+ var err = image.load(texName)
|
|
|
|
+ if err != OK:
|
|
|
|
+ print("error opening tex ", err)
|
|
|
|
+ var tex = ImageTexture.new()
|
|
|
|
+ tex.create_from_image(image, 0)
|
|
return tex
|
|
return tex
|
|
|
|
|
|
func getTexName(lat, lon):
|
|
func getTexName(lat, lon):
|