Skip to content

Outline Nodes: Honor positionNode, improve dispose(). - #34759

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev3
Oct 3, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev3

Conversation

@Mugen87

@Mugen87 Mugen87 commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

Fixed #34745.

Description

OutlineNode and ToonOutlinePassNode now honor positionNode and also better handle their material disposal.

ToonOutlinePassNode never disposed its internal material. OutlineNode gets now the same treatment.

@Mugen87 Mugen87 added this to the r187 milestone Oct 3, 2026
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
Core 390.06
102.33
390.06
102.33
+0 B
+0 B
WebGL 372.97
87.24
372.97
87.24
+0 B
+0 B
WebGPU 429.8
115.84
429.8
115.84
+0 B
+0 B
WebGPU Nodes 717.47
197.17
718.07
197.32
+604 B
+153 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 517.7
124.36
517.7
124.36
+0 B
+0 B
WebGPU 770.05
206.42
770.05
206.42
+0 B
+0 B
WebGPU Nodes 715.9
192.94
715.9
192.94
+0 B
+0 B

@Mugen87
Mugen87 merged commit e741816 into mrdoob:dev Oct 3, 2026
10 checks passed
MikeFernandez-Pro added a commit to MikeFernandez-Pro/three-vat that referenced this pull request Oct 30, 2026
…, since three r187

r187's outline() makes a copy of its depth and mask materials for each
material with a positionNode and hands it that node (mrdoob/three.js#34759),
so the hand-off to _prepareMaskMaterial does nothing and turning it off no
longer shows the rest pose. The page drops the fix and its toggle and says
that every pass there draws the crowd's own positionNode. docs/usage.md marks
outline() as following the pose from 0.187 and keeps the recipe for 0.186.
MikeFernandez-Pro added a commit to MikeFernandez-Pro/three-vat that referenced this pull request Nov 1, 2026
…, since three r187

r187's outline() makes a copy of its depth and mask materials for each
material with a positionNode and hands it that node (mrdoob/three.js#34759),
so the hand-off to _prepareMaskMaterial does nothing and turning it off no
longer shows the rest pose. The page drops the fix and its toggle and says
that every pass there draws the crowd's own positionNode. docs/usage.md marks
outline() as following the pose from 0.187 and keeps the recipe for 0.186.
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.

OutlineNode, ToonOutlinePassNode: Outlines ignore material.positionNode

1 participant