Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
818bbb5b
Commit
818bbb5b
authored
May 02, 2017
by
amandaghassaei
Browse files
lighting
parent
2dacebbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/threeView.js
View file @
818bbb5b
...
...
@@ -40,6 +40,14 @@ function initThreeView(globals) {
var
directionalLight3
=
new
THREE
.
DirectionalLight
(
0xffffff
,
0.8
);
directionalLight3
.
position
.
set
(
-
100
,
-
30
,
0
);
scene
.
add
(
directionalLight3
);
var
directionalLight4
=
new
THREE
.
DirectionalLight
(
0xffffff
,
0.3
);
directionalLight4
.
position
.
set
(
0
,
30
,
100
);
scene
.
add
(
directionalLight4
);
var
directionalLight5
=
new
THREE
.
DirectionalLight
(
0xffffff
,
0.3
);
directionalLight5
.
position
.
set
(
0
,
30
,
-
100
);
scene
.
add
(
directionalLight5
);
var
ambientLight
=
new
THREE
.
AmbientLight
(
0xffffff
,
0.1
);
scene
.
add
(
ambientLight
);
//scene.fog = new THREE.FogExp2(0xf4f4f4, 1.7);
//renderer.setClearColor(scene.fog.color);
...
...
@@ -74,8 +82,7 @@ function initThreeView(globals) {
}
animationRunning
=
true
;
_loop
(
function
(){
// if (!globals.stlEditing) //only run dynamic sim if not editing stl
callback
();
callback
();
_render
();
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment