I'm trying to learn SceneKit development and try to add a skybox in the background. To store the cube map textures I found that XCAssets has a type Cube Texture Set which seems to fit the bill perfectly.
However. I've not found any way to access the texture in code (e.g. as an image set where you call UIImage(named: "asset_name")
). I've tried creating an SKTexture
, MDLTexture
og MTKTexture
from the asset but without success. Do anyone know how I can use the cube texture set?