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: Store draw ranges for use with multi draw support #27109

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

gkjohnson
Copy link
Collaborator

Related issue: #22376

Description

Adds storage of the "drawRange" for each geometry to the BatchedMesh and updates it on change in preparation for multidraw support. Also updates some variable names to reduce conflict (reservedRange and drawRange) and adds isBatchedMesh field.

Next I will add support for the multi draw extension. The list of ranges for use with the API will be able to be generated, sorted, and filtered in the "onBeforeRender" callback.

@gkjohnson gkjohnson added this to the r159 milestone Nov 3, 2023
@gkjohnson gkjohnson marked this pull request as ready for review November 3, 2023 10:37
@Mugen87 Mugen87 merged commit 6f6ef50 into mrdoob:dev Nov 3, 2023
19 checks passed
@gkjohnson gkjohnson deleted the store-draw-ranges branch November 3, 2023 11:56
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