Skip to content

Commit 688f315

Browse files
authored
GLTFExporter: Fix value of emissiveFactor. (#21855)
1 parent 6b26746 commit 688f315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/js/exporters/GLTFExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@
10811081
if ( material.emissive ) {
10821082

10831083
// emissiveFactor
1084-
const emissive = material.emissive.clone().multiplyScalar( material.emissiveIntensity ).toArray();
1084+
const emissive = material.emissive.toArray();
10851085

10861086
if ( ! equalArray( emissive, [ 0, 0, 0 ] ) ) {
10871087

examples/jsm/exporters/GLTFExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class GLTFWriter {
11771177
if ( material.emissive ) {
11781178

11791179
// emissiveFactor
1180-
const emissive = material.emissive.clone().multiplyScalar( material.emissiveIntensity ).toArray();
1180+
const emissive = material.emissive.toArray();
11811181

11821182
if ( ! equalArray( emissive, [ 0, 0, 0 ] ) ) {
11831183

0 commit comments

Comments
 (0)