|
@@ -845,12 +845,24 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( source.color != undefined ) {
|
|
|
+ if ( source.color ) {
|
|
|
|
|
|
target.color = source.color.clone();
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( source.specular ) {
|
|
|
+
|
|
|
+ target.specular = source.specular.clone();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if ( source.emissive ) {
|
|
|
+
|
|
|
+ target.emissive = source.emissive.clone();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
return target;
|
|
|
|
|
|
},
|