File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 117
117
//
118
118
119
119
var materialColor = new THREE . MeshBasicMaterial ( {
120
- map : THREE . ImageUtils . loadTexture ( "textures/cube/SwedishRoyalCastle/pz.jpg" ) ,
120
+ map : new THREE . TextureLoader ( ) . load ( "textures/cube/SwedishRoyalCastle/pz.jpg" ) ,
121
121
depthTest : false
122
122
} ) ;
123
123
334
334
335
335
function createMesh ( geometry , scene , scale ) {
336
336
337
- var mat2 = new THREE . MeshLambertMaterial ( {
337
+ var mat2 = new THREE . MeshPhongMaterial ( {
338
338
339
339
color : 0x999999 ,
340
340
specular : 0x080808 ,
341
341
shininess : 20 ,
342
- map : THREE . ImageUtils . loadTexture ( "obj/leeperrysmith/Map-COL.jpg" ) ,
343
- normalMap : THREE . ImageUtils . loadTexture ( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" ) ,
342
+ map : new THREE . TextureLoader ( ) . load ( "obj/leeperrysmith/Map-COL.jpg" ) ,
343
+ normalMap : new THREE . TextureLoader ( ) . load ( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" ) ,
344
344
normalScale : new THREE . Vector2 ( 0.75 , 0.75 )
345
345
346
346
} ) ;
You can’t perform that action at this time.
0 commit comments