# Examples from pyvista.examples.downloads.download_cubemap_space_16k
# ===================================================================

# Display the cubemap as both an environment texture and an actor. Note that
# here we're displaying the 4k as the 16k is a bit too expensive to display
# in the documentation.
import pyvista as pv
from pyvista import examples
cubemap = examples.download_cubemap_space_4k()
pl = pv.Plotter(lighting=None)
_ = pl.add_actor(cubemap.to_skybox())
pl.set_environment_texture(cubemap, is_srgb=True)
pl.camera.zoom(0.4)
_ = pl.add_mesh(pv.Sphere(), pbr=True, roughness=0.24, metallic=1.0)
pl.show()

# SEE ALSO:
#     Cubemap Space 16k Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#cubemap-space-16k-dataset
#     See this dataset in the Dataset Gallery for more info.
#     Cubemap Space 4k Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#cubemap-space-4k-dataset
#     Cubemap Park Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#cubemap-park-dataset
#     Sky Box Cube Map Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#sky-box-cube-map-dataset

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

