Browse Source

GLTFExporter: Fix value of emissiveFactor. (#21855)

Michael Herzog 4 years ago
parent
commit
688f315043
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/js/exporters/GLTFExporter.js
  2. 1 1
      examples/jsm/exporters/GLTFExporter.js

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -1081,7 +1081,7 @@
 			if ( material.emissive ) {
 
 				// emissiveFactor
-				const emissive = material.emissive.clone().multiplyScalar( material.emissiveIntensity ).toArray();
+				const emissive = material.emissive.toArray();
 
 				if ( ! equalArray( emissive, [ 0, 0, 0 ] ) ) {
 

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -1177,7 +1177,7 @@ class GLTFWriter {
 		if ( material.emissive ) {
 
 			// emissiveFactor
-			const emissive = material.emissive.clone().multiplyScalar( material.emissiveIntensity ).toArray();
+			const emissive = material.emissive.toArray();
 
 			if ( ! equalArray( emissive, [ 0, 0, 0 ] ) ) {