Browse Source

Improve diff of code snippet example (#163)

Co-authored-by: Torsten Knauf <[email protected]>
shaman-apprentice 4 years ago
parent
commit
573635944d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      threejs/lessons/threejs-scenegraph.md

+ 1 - 0
threejs/lessons/threejs-scenegraph.md

@@ -209,6 +209,7 @@ Continuing that same pattern let's add a moon.
 
 const earthMaterial = new THREE.MeshPhongMaterial({color: 0x2233FF, emissive: 0x112244});
 const earthMesh = new THREE.Mesh(sphereGeometry, earthMaterial);
+-earthMesh.position.x = 10; // note that this offset is already set in its parent's THREE.Object3D object "earthOrbit"
 -solarSystem.add(earthMesh);
 +earthOrbit.add(earthMesh);
 objects.push(earthMesh);