Skip to content

Instantly share code, notes, and snippets.

@barbaramartina
Created July 12, 2017 21:17
Show Gist options
  • Save barbaramartina/b859ad7a5d9e4715004a9fceccbbd213 to your computer and use it in GitHub Desktop.
Save barbaramartina/b859ad7a5d9e4715004a9fceccbbd213 to your computer and use it in GitHub Desktop.
// Model used -> https://free3d.com/download-page.php?url=rose-31675
let scene = SCNScene(named: "rose.obj")
// Set up the SceneView
sceneView.autoenablesDefaultLighting = true
sceneView.allowsCameraControl = true
sceneView.scene = scene
sceneView.backgroundColor = .black
// Make sure to include all files for the model in your bundle: mtl obj and jpg textures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment