Image on Geometry (Earth)


using FileIO, Colors, GeometryBasics

using AbstractPlotting

earth = try
    load(download("https://svs.gsfc.nasa.gov/vis/a000000/a002900/a002915/bluemarble-2048.png"))
catch e
    @warn("Downloadinging the earth failed. Using random image, so this test will fail! (error: $e)")
    rand(RGBAf0, 100, 100) # don't error test when e.g. offline
end
m = uv_mesh(Sphere(Point3f0(0), 1f0); nvertices=60)
mesh(m, color=earth, shading = false)