Skip to content

Instantly share code, notes, and snippets.

@emilwidlund
Last active May 22, 2018 20:49
Show Gist options
  • Select an option

  • Save emilwidlund/d95dee04b3be8f9880a85a2a8b84223c to your computer and use it in GitHub Desktop.

Select an option

Save emilwidlund/d95dee04b3be8f9880a85a2a8b84223c to your computer and use it in GitHub Desktop.
new Model
path: './models/plate.obj'
parent: scene
scale: 30
y: 100
rotationX:30
material: new THREE.MeshPhongMaterial
color: 0xffffff
specular: 0xffffff
shininess: 20
vertexColors: THREE.FaceColors
flatShading: true
onLoad: (modelA) ->
clock = new THREE.Clock
new Model
path: './models/arm.obj'
parent: modelA
scale: 30
material: new THREE.MeshPhongMaterial
color: 0xffffff
specular: 0xffffff
shininess: 20
vertexColors: THREE.FaceColors
flatShading: true
onLoad: (modelB) ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment