Skip to content

TSL: Automatic RTT if procedural input ​​are used in bumpMap()#31833

Draft
sunag wants to merge 2 commits into
mrdoob:devfrom
sunag:dev-rev
Draft

TSL: Automatic RTT if procedural input ​​are used in bumpMap()#31833
sunag wants to merge 2 commits into
mrdoob:devfrom
sunag:dev-rev

Conversation

@sunag
Copy link
Copy Markdown
Collaborator

@sunag sunag commented Sep 5, 2025

Closes #31804

Description

Automatic RTT if procedural input ​​are used in bumpMap()

@sunag sunag added this to the r181 milestone Sep 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 5, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.24
79.14
338.24
79.14
+0 B
+0 B
WebGPU 579.39
160.1
579.39
160.19
+2 B
+89 B
WebGPU Nodes 578
159.86
578
159.95
-2 B
+88 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 469.83
113.84
469.83
113.84
+0 B
+0 B
WebGPU 649.09
175.75
650.6
176.21
+1.51 kB
+454 B
WebGPU Nodes 603.2
164.92
604.71
165.35
+1.51 kB
+427 B

@Mugen87
Copy link
Copy Markdown
Collaborator

Mugen87 commented Sep 6, 2025

webgpu_lights_physical and webgpu_materials_lightmap now throw this error:

Uncaught Error: THREE.TSL: texture( value ) function expects a valid instance of THREE.Texture().

@sunag
Copy link
Copy Markdown
Collaborator Author

sunag commented Sep 6, 2025

Oh, I had forgotten that bumpMap uses a more robust system to make the samples, I have to think about this more deeply.

@mrdoob mrdoob modified the milestones: r181, r182 Oct 31, 2025
@mrdoob mrdoob modified the milestones: r182, r183 Dec 10, 2025
@mrdoob mrdoob modified the milestones: r183, r184 Feb 18, 2026
@mrdoob mrdoob modified the milestones: r184, r185 Apr 16, 2026
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.

bumpMap node for procedural textures in TSL

3 participants