فهرست منبع

Update GLTFExporter.js (#21858)

* Update GLTFExporter.js

* Update GLTFExporter.js
Mr.doob 4 سال پیش
والد
کامیت
09a68603cd
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      examples/js/exporters/GLTFExporter.js
  2. 1 1
      examples/jsm/exporters/GLTFExporter.js

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