Skip to content

MeshPhongMaterial: Add support for scene.environment IBL.#32795

Merged
mrdoob merged 2 commits into
devfrom
phong-ibl
Jan 19, 2026
Merged

MeshPhongMaterial: Add support for scene.environment IBL.#32795
mrdoob merged 2 commits into
devfrom
phong-ibl

Conversation

@mrdoob

@mrdoob mrdoob commented Jan 19, 2026

Copy link
Copy Markdown
Owner

Description:

Adds image-based lighting (IBL) support to MeshPhongMaterial, allowing it to receive indirect diffuse lighting from scene.environment. This follows the same pattern as the recent MeshLambertMaterial implementation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mrdoob mrdoob added this to the r183 milestone Jan 19, 2026
@github-actions

github-actions Bot commented Jan 19, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 356.13
84.63
356.54
84.66
+404 B
+29 B
WebGPU 621.5
172.57
621.5
172.57
+0 B
+0 B
WebGPU Nodes 620.1
172.33
620.1
172.33
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 488.37
119.53
488.78
119.56
+404 B
+26 B
WebGPU 692.03
187.86
692.1
187.86
+62 B
+4 B
WebGPU Nodes 641.77
175.02
641.77
175.02
+0 B
+0 B

@mrdoob mrdoob merged commit 5c6374b into dev Jan 19, 2026
10 checks passed
@mrdoob mrdoob deleted the phong-ibl branch January 19, 2026 10:15
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.

1 participant