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: Add built-in material support #27115

Merged
merged 13 commits into from
Nov 6, 2023

Conversation

gkjohnson
Copy link
Collaborator

@gkjohnson gkjohnson commented Nov 5, 2023

Related issue: #22376, #27111

Description

Moves the shader chunks and logic into three.js core for BatchedMesh and removes need for compile callback.

Upcoming PRs

  • Reduce redundant storage of data in arrays
  • Add support for toJSON, copy
  • Add support for frustum culling, sorting, raycasting
  • Move to core

@gkjohnson gkjohnson added this to the r159 milestone Nov 5, 2023
Copy link

github-actions bot commented Nov 5, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
653.4 kB (161.9 kB) 655.3 kB (162.3 kB) +1.84 kB

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
446 kB (107.9 kB) 447.9 kB (108.2 kB) +1.84 kB

@gkjohnson gkjohnson merged commit e4a5253 into mrdoob:dev Nov 6, 2023
20 checks passed
@gkjohnson gkjohnson deleted the batching-material-properties branch November 6, 2023 09:08
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