Commit 0f1e1fd1 authored by amandaghassaei's avatar amandaghassaei
Browse files

small changes

parent da6c1f8a
......@@ -277,9 +277,6 @@ function initModel(globals){
positions[3*i] = vertices[i].x;
positions[3*i+1] = vertices[i].y;
positions[3*i+2] = vertices[i].z;
colors[3*i] = 1;
colors[3*i+1] = 0;
colors[3*i+2] = 1;
}
for (var i=0;i<faces.length;i++){
var face = faces[i];
......
......@@ -45,10 +45,12 @@ function initThreeView(globals) {
directionalLight5.position.set(0, 30, -100);
scene.add(directionalLight5);
var ambientLight = new THREE.AmbientLight(0xffffff, 0.1);
scene.add(ambientLight);
// scene.add(ambientLight);
//scene.fog = new THREE.FogExp2(0xf4f4f4, 1.7);
//renderer.setClearColor(scene.fog.color);
scene.add(camera);
camera.zoom = 5;
camera.updateProjectionMatrix();
camera.position.x = 200;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment