提交 51fe72c0 编写于 作者: A alteredq

Fixed shininess handling in MTLLoader. Tweaked new UTF8 example.

上级 9c3d5acd
......@@ -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;
......
......@@ -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" },
......
{
"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],
......
......@@ -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 } );
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册