Browse Source

Add stairway

master
Peter Hajas 3 years ago
parent
commit
486648ec38
  1. 9
      data.json
  2. 2
      script.js

9
data.json

@ -26,6 +26,15 @@
"h" : 4.6736, "h" : 4.6736,
"d" : 3.048, "d" : 3.048,
"color" : "green" "color" : "green"
},
{
"name" : "Stairway",
"x" : 0,
"y" : 7.7216,
"w" : 2.9972,
"h" : 3.149,
"d" : 6.096,
"color" : "blue"
} }
] ]
} }

2
script.js

@ -12,7 +12,7 @@ light.position.z = 100
scene.add(light) scene.add(light)
// back the camera up // back the camera up
camera.position.z = 15; camera.position.z = 25
// transform the home to be a reasonable orientation // transform the home to be a reasonable orientation
home.rotation.x = Math.PI * 2/3 home.rotation.x = Math.PI * 2/3

Loading…
Cancel
Save