extends TextureRect func _ready(): var img = Image.create(Global.world.width, Global.world.height, false, Image.FORMAT_RGBA8) for x in Global.world.width: for z in Global.world.height: var pixel_color = Color("#00F") var y = Global.world.find_elevation(Vector2(x, z)) if y > 0: pixel_color = Color("#0F0") img.set_pixel(x, z, pixel_color) texture = ImageTexture.create_from_image(img)