Metalness and Roughness maps(光泽度和粗糙度贴图):Xcode8引入的新特性,Physically Based Rendering (PBR)灯光模型可以使用Metalness和Roughness贴图.
skybox天空盒子
设置方法如图,也可以用代码设置:
let scene = SCNScene()
scnView.scene = scene
scene.background.contents = "skybox01_cube.png"
当使用Cube map立方体贴图时,Scene Kit支持以下几种图像模式
1. A horizontal strip image where `6 * image.height == image.width`水平排列宽高6:12. A vertical strip image where ` image.height == 6 * image.width`竖直排列宽高1:63. A horizontal cross image where `4 * image.height == 3 * image.width`水平十字交叉宽高3:44. A vertical cross image where `3 * image.height == 4 * image.width`竖直十字交叉宽高3:45. A lat/long image where ` image.height == 2 * image.width`经纬度图片宽高1:26. ANSArray of 6 images. This array must contain images of the exact same dimensions, in the following order, in a left-handed coordinate system: +X, -X, +Y, -Y, +Z, -Z (or Right, Left, Top, Bottom, Front, Back).图片数组6张