Skip to content

Commit

Permalink
发布v0.4.2。
Browse files Browse the repository at this point in the history
  • Loading branch information
tengge1 committed Feb 8, 2020
1 parent cf7caa5 commit 76db621
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ShadowEditor.Web/src/editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,22 +283,22 @@ class Editor extends React.Component {
}

// 测试
if(app.debug) {
let geometry = new THREE.PlaneBufferGeometry(100, 100);
// if(app.debug) {
// let geometry = new THREE.PlaneBufferGeometry(100, 100);

let map = new THREE.TextureLoader().load('assets/textures/grid.png');
map.wrapS = map.wrapT = THREE.RepeatWrapping;
map.repeat.set(64, 64);
// let map = new THREE.TextureLoader().load('assets/textures/grid.png');
// map.wrapS = map.wrapT = THREE.RepeatWrapping;
// map.repeat.set(64, 64);

let material = new THREE.MeshBasicMaterial({
map
});
// let material = new THREE.MeshBasicMaterial({
// map
// });

let mesh = new THREE.Mesh(geometry, material);
mesh.rotation.x = -Math.PI / 2;
// let mesh = new THREE.Mesh(geometry, material);
// mesh.rotation.x = -Math.PI / 2;

this.scene.add(mesh);
}
// this.scene.add(mesh);
// }

app.call('editorCleared', this);
app.call('scriptChanged', this);
Expand Down

0 comments on commit 76db621

Please sign in to comment.