Przeglądaj źródła

Merge pull request #12308 from looeee/FBXLoader_support_bumpscale

FBXLoader: Added bumpScale support
Mr.doob 7 lat temu
rodzic
commit
8077105925
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      examples/js/loaders/FBXLoader.js

+ 6 - 1
examples/js/loaders/FBXLoader.js

@@ -479,6 +479,11 @@
 
 		var parameters = {};
 
+		if ( properties.BumpFactor ) {
+
+			parameters.bumpScale = parseFloat( properties.BumpFactor.value );
+
+		}
 		if ( properties.Diffuse ) {
 
 			parameters.color = parseColor( properties.Diffuse );
@@ -501,7 +506,7 @@
 		}
 		if ( properties.EmissiveFactor ) {
 
-			parameters.emissiveIntensity = properties.EmissiveFactor.value;
+			parameters.emissiveIntensity = parseFloat( properties.EmissiveFactor.value );
 
 		}
 		if ( properties.Opacity ) {