Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPURenderer: Add signature to shader #29240

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

WestLangley
Copy link
Collaborator

Like so.

Screenshot 2024-08-26 at 9 31 58 PM

It also applies the same injection to both vertex and fragment.

This PR only implements the change for the WebGL backend.

@WestLangley WestLangley added this to the r168 milestone Aug 27, 2024
Copy link

github-actions bot commented Aug 27, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
685.4 kB (169.7 kB) 685.4 kB (169.7 kB) +0 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
462 kB (111.4 kB) 462 kB (111.4 kB) +0 B

@WestLangley WestLangley changed the title WebGPURenderer: Inject material name into shader WebGPURenderer: Add signature to shader Aug 28, 2024
@sunag sunag merged commit fb6fe8f into mrdoob:dev Aug 28, 2024
12 checks passed
@WestLangley WestLangley deleted the dev-webgpu_shader_name branch August 28, 2024 18:11
@WestLangley
Copy link
Collaborator Author

@aardgoose
@Mugen87

As discussed in the comments, this PR was modified, and no longer injects the material name into the shader.

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.

2 participants