File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 102
102
controls . minDistance = 50 ;
103
103
controls . maxDistance = 200 ;
104
104
105
- var light = new THREE . HemisphereLight ( 0xffddcc , 0x111122 ) ;
105
+ scene . add ( new THREE . AmbientLight ( 0x443333 ) ) ;
106
+
107
+ var light = new THREE . DirectionalLight ( 0xffddcc , 1 ) ;
106
108
light . position . set ( 1 , 0.75 , 0.5 ) ;
107
109
scene . add ( light ) ;
108
110
111
+ var light = new THREE . DirectionalLight ( 0xccccff , 1 ) ;
112
+ light . position . set ( - 1 , 0.75 , - 0.5 ) ;
113
+ scene . add ( light ) ;
114
+
109
115
var geometry = new THREE . Geometry ( ) ;
110
116
geometry . vertices . push ( new THREE . Vector3 ( ) , new THREE . Vector3 ( ) ) ;
111
117
223
229
loader . load ( 'obj/leeperrysmith/LeePerrySmith.js' , function ( geometry ) {
224
230
225
231
var material = new THREE . MeshPhongMaterial ( {
232
+ specular : 0x111111 ,
226
233
map : THREE . ImageUtils . loadTexture ( 'obj/leeperrysmith/Map-COL.jpg' ) ,
227
234
specularMap : THREE . ImageUtils . loadTexture ( 'obj/leeperrysmith/Map-SPEC.jpg' ) ,
228
235
normalMap : THREE . ImageUtils . loadTexture ( 'obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg' ) ,
229
- shininess : 10
236
+ normalScale : new THREE . Vector2 ( 0.75 , 0.75 ) ,
237
+ shininess : 25
230
238
} ) ;
231
239
232
240
mesh = new THREE . Mesh ( geometry , material ) ;
You can’t perform that action at this time.
0 commit comments