提交 81f460bf 编写于 作者: M Mr.doob

ColladaLoader2: Handle shininess.

上级 8d588169
......@@ -387,6 +387,7 @@ THREE.ColladaLoader.prototype = {
case 'diffuse':
case 'specular':
case 'transparent':
case 'shininess':
data[ child.nodeName ] = parseEffectParameter( child );
break;
......@@ -414,6 +415,10 @@ THREE.ColladaLoader.prototype = {
data[ child.nodeName ] = parseFloats( child.textContent );
break;
case 'float':
data[ child.nodeName ] = parseFloat( child.textContent );
break;
case 'texture':
data[ child.nodeName ] = child.getAttribute( 'texture' );
break;
......@@ -530,6 +535,10 @@ THREE.ColladaLoader.prototype = {
if ( parameter.color && material.specular )
material.specular.fromArray( parameter.color );
break;
case 'shininess':
if ( parameter.float && material.shininess )
material.shininess = parameter.float;
break;
case 'emission':
if ( parameter.color && material.emissive )
material.emissive.fromArray( parameter.color );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册