Skip to content

fix(webgpu): safely expose material uniforms and fix portal blur - #2826

Merged
krispya merged 1 commit into
v11-workingfrom
fix/webgpu-uniform-accessors
Sep 5, 2026
Merged

fix(webgpu): safely expose material uniforms and fix portal blur#2826
krispya merged 1 commit into
v11-workingfrom
fix/webgpu-uniform-accessors

Conversation

@krispya

@krispya krispya commented Sep 5, 2026

Copy link
Copy Markdown
Member

Fixes WebGPU material constructor crashes caused by custom uniforms overriding Three.js properties. We introduce a withUniforms helper that block reserved property names on the base materials so there is conflict.

Note: This is still a workaround. If a user tries to copy or clone the material there will be issues.

Also fixes portal blur mask generation, asynchronous GPU readback, and resource cleanup.

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drei Error Error Sep 5, 2026 12:49am UTC

Request Review

@krispya
krispya merged commit f54696d into v11-working Sep 5, 2026
5 of 6 checks passed
@krispya
krispya deleted the fix/webgpu-uniform-accessors branch September 5, 2026 00:49
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

📊 Package size report   No changes

File Before (Size / Gzip) After (Size / Gzip)
Total (Includes all files) 46.1 MB / 38.0 MB 46.1 MB / 38.0 MB
Tarball size 37.6 MB 37.6 MB
Hidden files
File Before (Size / Gzip) After (Size / Gzip)
.yarn/install-state.gz 1.5 MB / 1.5 MB 1.5 MB / 1.5 MB

🤖 This report was automatically generated by pkg-size-action

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 11.0.0-alpha.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant