Ver Fonte

GLTFExporter: Fix value of emissiveFactor. (#21855)

Michael Herzog há 4 anos atrás
pai
commit
688f315043

+ 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 ] ) ) {