diff --git a/examples/js/loaders/MTLLoader.js b/examples/js/loaders/MTLLoader.js index 15ceec3971ca9e523799d83cd00155332630614d..2b8e0109555bd86386be49a005c2b34e3677f9df 100644 --- a/examples/js/loaders/MTLLoader.js +++ b/examples/js/loaders/MTLLoader.js @@ -232,7 +232,7 @@ THREE.MTLLoader.MaterialCreator.prototype = { params['map'].wrapS = this.wrap; params['map'].wrapT = this.wrap; break; - case 'Ns': + case 'ns': // The specular exponent (defines the focus of the specular highlight) // A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000. params['shininess'] = value; diff --git a/examples/models/utf8_r104/ben.js b/examples/models/utf8_r104/ben.js index 9b75ab64e7f9b4315c7e9f592ee73bca5ddb4d30..627e48e0fbed1be45e7c4cc274888a0f86b82eaa 100644 --- a/examples/models/utf8_r104/ben.js +++ b/examples/models/utf8_r104/ben.js @@ -6,14 +6,14 @@ "teethtop": { "Kd": [251, 248, 248] }, "topeyelashes": { "Kd": [66, 52, 42], "map_Kd": "James_EyeLashTopTran.png", "d": 0.999 }, "bottomeyelashes": { "Kd": [66, 52, 42], "map_Kd": "James_EyeLashBotTran.png", "d": 0.999 }, - "head": { "map_Kd": "James_Face_Color_Hair_Lores.jpg" }, + "head": { "map_Kd": "James_Face_Color_Hair_Lores.jpg", "Ks": [30,30,30], "Ns": 100 }, "eyetrans": { "Kd": [0, 0, 0] }, "pupil": { "Kd": [1, 1, 1] }, "iris": { "map_Kd": "James_Eye_Inner_Green.jpg" }, "eyeball": { "map_Kd": "James_Eye_Green.jpg" }, - "pants": { "map_Kd": "MJeans1TEX_Lores.jpg" }, - "tshirt3": { "map_Kd": "MTshirt3TEX_Lores.jpg" }, - "skinbody": { "map_Kd": "James_Body_Lores.jpg" }, + "pants": { "map_Kd": "MJeans1TEX_Lores.jpg", "Ks": [30,30,30], "Ns": 20 }, + "tshirt3": { "map_Kd": "MTshirt3TEX_Lores.jpg", "Ks": [30,30,30], "Ns": 20 }, + "skinbody": { "map_Kd": "James_Body_Lores.jpg", "Ks": [30,30,30], "Ns": 100 }, "fingernails": { "map_Kd": "Nail_Hand_01_Lores.jpg" }, "soleshoe": { "map_Kd": "MCasShoe1TEX_Lores.jpg" }, "sole": { "map_Kd": "MCasShoe1TEX_Lores.jpg" }, diff --git a/examples/models/utf8_r104/hand.js b/examples/models/utf8_r104/hand.js index da7118e78d1b8df8225aa0ff583e0a0a0ee174e4..747ca5ad1c846bb05b7fc258c9e1af5aded1b3f0 100644 --- a/examples/models/utf8_r104/hand.js +++ b/examples/models/utf8_r104/hand.js @@ -1,8 +1,8 @@ { "materials": { "preview": { "Kd": [184, 136, 234] }, - "nails": { "map_Kd": "hand.jpg" }, - "skin": { "map_Kd": "hand.jpg" } + "nails": { "Kd": [251, 238, 209], "map_Kd": "hand.jpg", "Ks": [30,30,30], "Ns": 100 }, + "skin": { "Kd": [207, 181, 161], "map_Kd": "hand.jpg", "Ks": [30,30,30], "Ns": 30 } }, "decodeParams": { "decodeOffsets": [-7473,-239,-8362,0,0,-511,-511,-511], diff --git a/examples/webgl_loader_utf8_r104.html b/examples/webgl_loader_utf8_r104.html index 74feb6bfae21de5c0155929aa466cdd67a1cf507..7af98f0213fd62e27897ee4a21e3ed7d98973235 100644 --- a/examples/webgl_loader_utf8_r104.html +++ b/examples/webgl_loader_utf8_r104.html @@ -86,10 +86,10 @@ // LIGHTS - var ambient = new THREE.AmbientLight( 0x221100 ); + var ambient = new THREE.AmbientLight( 0x222222 ); scene.add( ambient ); - var directionalLight = new THREE.DirectionalLight( 0xffeedd ); + var directionalLight = new THREE.DirectionalLight( 0xffffff ); directionalLight.position.set( 0, 0, 1 ).normalize(); scene.add( directionalLight ); @@ -127,7 +127,7 @@ object.position.y = -125; scene.add( object ); - } ); + }, { normalizeRGB: true } ); loader.load( "models/utf8_r104/ben.js", function ( object ) { @@ -137,7 +137,7 @@ object.position.y = -125; scene.add( object ); - } ); + }, { normalizeRGB: true } ); //