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

BatchedMesh: Fix MeshBasicMaterial not working #27229

Merged
merged 2 commits into from Nov 22, 2023

Conversation

gkjohnson
Copy link
Collaborator

Related issue: #22376

Description

Previously MeshBasicMaterial wasn't working with BatchedMesh since the batchMatrix was retrieved in the normal_vertex chunk which basic material did not use. The batch matrix is now retrieved at the beginning of all visual mesh shaders.

@gkjohnson gkjohnson added this to the r159 milestone Nov 22, 2023
@gkjohnson gkjohnson marked this pull request as ready for review November 22, 2023 09:45
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
668.3 kB (165.9 kB) 668.7 kB (165.9 kB) +346 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
449.3 kB (108.9 kB) 449.7 kB (108.9 kB) +346 B

@gkjohnson gkjohnson merged commit fe587fa into mrdoob:dev Nov 22, 2023
12 checks passed
@gkjohnson gkjohnson deleted the batch-fix-vertex-shaders branch November 22, 2023 10:01
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* Add new batching_vertex shader chunk

* Fix material shaders
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.

None yet

2 participants