Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5bd32f3

Browse files
committedJan 12, 2016
removed deprecated code in webgl_postprocessing_advanced.html
1 parent e14bfa2 commit 5bd32f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎examples/webgl_postprocessing_advanced.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
//
118118

119119
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" ),
121121
depthTest: false
122122
} );
123123

@@ -334,13 +334,13 @@
334334

335335
function createMesh( geometry, scene, scale ) {
336336

337-
var mat2 = new THREE.MeshLambertMaterial( {
337+
var mat2 = new THREE.MeshPhongMaterial( {
338338

339339
color: 0x999999,
340340
specular: 0x080808,
341341
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" ),
344344
normalScale: new THREE.Vector2( 0.75, 0.75 )
345345

346346
} );

0 commit comments

Comments
 (0)
Please sign in to comment.