Skip to content

NodeMaterial: Add emissiveNode to lambert, phong and toon materials. - #35059

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
MikeFernandez-Pro:nodematerial-emissivenode
Oct 17, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
MikeFernandez-Pro:nodematerial-emissivenode

Conversation

@MikeFernandez-Pro

Copy link
Copy Markdown
Contributor

Related issue: -

Description

NodeMaterial.setupLighting() uses emissiveNode for all node materials, but only MeshStandardNodeMaterial declares it. When emissiveNode is passed to the constructor of MeshLambertNodeMaterial, MeshPhongNodeMaterial or MeshToonNodeMaterial, setValues() logs that it is not a property and the value is ignored.

This PR declares emissiveNode on these materials, with the same JSDoc as MeshStandardNodeMaterial.

@github-actions

Copy link
Copy Markdown

πŸ“¦ Bundle size

Full ESM build including core, minified and gzipped.

Before After Diff
Core 392.32
102.83
392.32
102.83
+0 B
+0 B
WebGL 778.74
194.39
778.74
194.39
+0 B
+0 B
WebGPU 1102.95
296.89
1103.02
296.89
+69 B
+6 B
WebGPU Nodes 1100.90
296.54
1100.97
296.55
+69 B
+7 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 518.96
124.67
518.96
124.67
+0 B
+0 B
WebGPU 781.17
209.10
781.24
209.11
+69 B
+13 B
WebGPU Nodes 727.34
195.70
727.34
195.70
+0 B
+0 B

@Mugen87 Mugen87 added this to the r187 milestone Oct 17, 2026
@Mugen87
Mugen87 merged commit f8e1f14 into mrdoob:dev Oct 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants