MarkTraceur has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/365661 )
Change subject: Fiddle with lighting to make shapes clearer
......................................................................
Fiddle with lighting to make shapes clearer
Change-Id: I211920c91ca4a78c2d80885da88031087cdb6ae5
---
M 3d2png.js
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/3d2png refs/changes/61/365661/1
diff --git a/3d2png.js b/3d2png.js
index 62941aa..6435957 100755
--- a/3d2png.js
+++ b/3d2png.js
@@ -28,11 +28,12 @@
* Sets up the Three environment (ambient light, camera, renderer)
*/
ThreeDtoPNG.prototype.setupEnvironment = function() {
- var ambient = new THREE.AmbientLight( 0x999999 ),
+ var ambient = new THREE.AmbientLight( 0x666666 ),
+ dlight = new THREE.DirectionalLight( 0x999999 ),
point = new THREE.PointLight( 0xffffff, 0.4 );
this.scene.add( ambient );
-
+ this.schene.add( dlight );
this.camera.add( point );
this.scene.add( this.camera );
--
To view, visit https://gerrit.wikimedia.org/r/365661
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I211920c91ca4a78c2d80885da88031087cdb6ae5
Gerrit-PatchSet: 1
Gerrit-Project: 3d2png
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits