Explorar o código

Update GLTFExporter.js (#21858)

* Update GLTFExporter.js

* Update GLTFExporter.js
Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
09a68603cd

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

@@ -1080,7 +1080,7 @@
 
 			if ( material.emissive ) {
 
-				// emissiveFactor
+				// note: `emissive` is not scaled by `material.emissiveIntensity` for now to accommodate glTF spec. see #21849.
 				const emissive = material.emissive.toArray();
 
 				if ( ! equalArray( emissive, [ 0, 0, 0 ] ) ) {

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

@@ -1176,7 +1176,7 @@ class GLTFWriter {
 
 		if ( material.emissive ) {
 
-			// emissiveFactor
+			// note: `emissive` is not scaled by `material.emissiveIntensity` for now to accommodate glTF spec. see #21849.
 			const emissive = material.emissive.toArray();
 
 			if ( ! equalArray( emissive, [ 0, 0, 0 ] ) ) {