Skip to content

Commit 761c541

Browse files
committed
Improved webgl_loader_pdb lighting.
1 parent 463f38c commit 761c541

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/webgl_loader_pdb.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,13 @@
115115
camera.position.z = 1000;
116116
scene.add( camera );
117117

118-
var light = new THREE.PointLight( 0xffffff, 0.8 );
119-
camera.add( light );
118+
var light = new THREE.DirectionalLight( 0xffffff, 0.8 );
119+
light.position.set( 1, 1, 1 );
120+
scene.add( light );
121+
122+
var light = new THREE.DirectionalLight( 0xffffff, 0.5 );
123+
light.position.set( -1, -1, 1 );
124+
scene.add( light );
120125

121126
root = new THREE.Group();
122127
scene.add( root );

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy