Skip to content

Commit

Permalink
typescript+three : デモのコードを調整 (オブジェクトを原点に)
Browse files Browse the repository at this point in the history
  • Loading branch information
ics-ikeda committed Aug 8, 2017
1 parent d797f53 commit fd0d74d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tutorial-typescript-three/build/bundle.js
Expand Up @@ -81,9 +81,10 @@ window.addEventListener('DOMContentLoaded', function () {
// シーンを作成
var scene = new THREE.Scene();
// カメラを作成
var camera = new THREE.PerspectiveCamera(45, 800 / 600, 1, 1000);
var camera = new THREE.PerspectiveCamera(45, 800 / 600, 1, 10000);
camera.position.set(0, 0, 1000);
// 箱を作成
var geometry = new THREE.BoxGeometry(1, 1, 1);
var geometry = new THREE.BoxGeometry(250, 250, 250);
var material = new THREE.MeshPhongMaterial({ color: 0xff0000 });
var box = new THREE.Mesh(geometry, material);
box.position.z = -5;
Expand Down
2 changes: 1 addition & 1 deletion tutorial-typescript-three/build/bundle.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions tutorial-typescript-three/src/main.ts
Expand Up @@ -12,10 +12,11 @@ window.addEventListener('DOMContentLoaded', () => {
const scene = new THREE.Scene();

// カメラを作成
const camera = new THREE.PerspectiveCamera(45, 800 / 600, 1, 1000);
const camera = new THREE.PerspectiveCamera(45, 800 / 600, 1, 10000);
camera.position.set(0, 0, 1000);

// 箱を作成
const geometry = new THREE.BoxGeometry(1, 1, 1);
const geometry = new THREE.BoxGeometry(250, 250, 250);
const material = new THREE.MeshPhongMaterial({color: 0xff0000});
const box = new THREE.Mesh(geometry, material);
box.position.z = -5;
Expand Down

0 comments on commit fd0d74d

Please sign in to comment.