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

WebGLProgram: Show which shader caused compilation error #27553

Merged

Conversation

hybridherbst
Copy link
Contributor

When I'm running into shader issues, it's often quite cumbersome to understand which shader/material has actually caused the issue. This PR just adds shader name and type to the error log.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
671.2 kB (166.8 kB) 671.3 kB (166.8 kB) +37 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
452.2 kB (109.8 kB) 452.3 kB (109.8 kB) +37 B

@Mugen87 Mugen87 added this to the r161 milestone Jan 12, 2024
@Mugen87 Mugen87 merged commit 329f9f0 into mrdoob:dev Jan 15, 2024
12 checks passed
@hybridherbst hybridherbst deleted the feature/show-shader-name-on-compilation-error branch January 15, 2024 14:54
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
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