Skip to content

LightShadow: Introduce biasNode.#32811

Merged
sunag merged 2 commits into
mrdoob:devfrom
Mugen87:dev4
Jan 22, 2026
Merged

LightShadow: Introduce biasNode.#32811
sunag merged 2 commits into
mrdoob:devfrom
Mugen87:dev4

Conversation

@Mugen87

@Mugen87 Mugen87 commented Jan 21, 2026

Copy link
Copy Markdown
Collaborator

Fixed #31191.

Description

Introduces LightShadow.biasNode as a node-based alternative to bias. When set, bias has no effect.

This gives the user more freedom in computing bias values e.g. based on the geometry data or distance values.

@github-actions

github-actions Bot commented Jan 21, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 356.54
84.66
356.54
84.66
+0 B
+0 B
WebGPU 621.76
172.66
621.77
172.67
+12 B
+8 B
WebGPU Nodes 620.36
172.43
620.37
172.43
+12 B
+8 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 489.35
119.68
489.35
119.68
+0 B
+0 B
WebGPU 692.73
187.97
692.78
187.99
+56 B
+18 B
WebGPU Nodes 642.4
175.15
642.46
175.17
+56 B
+19 B

@Mugen87 Mugen87 added this to the r183 milestone Jan 22, 2026
@Mugen87 Mugen87 requested a review from sunag January 22, 2026 12:07
@sunag sunag merged commit e29ac8e into mrdoob:dev Jan 22, 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.

WebGPU: Support shadow.biasNode for dynamic bias control via NodeMaterial system

2 participants