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

Mesh components with multiple materials draws the mesh multiple times. #834

Open
jespertheend opened this issue Dec 1, 2023 · 1 comment
Labels
effort: Moderate Will take a good amount of time and experience with the codebase, but feasible. topic: WebGPU Renderer Related to the WebGpuRenderer
Milestone

Comments

@jespertheend
Copy link
Collaborator

Right now it draws the entire range of the index buffer. But meshes should get some sort of way to indicate which range if indices belong to which material index.

@jespertheend jespertheend added effort: Moderate Will take a good amount of time and experience with the codebase, but feasible. topic: WebGPU Renderer Related to the WebGpuRenderer labels Dec 1, 2023
@jespertheend jespertheend added this to the MVP milestone Dec 1, 2023
@jespertheend
Copy link
Collaborator Author

I think gltf files have support for assigning index buffer ranges to specific materials as well.
So the gltf parser would probably have to be modified as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: Moderate Will take a good amount of time and experience with the codebase, but feasible. topic: WebGPU Renderer Related to the WebGpuRenderer
Projects
None yet
Development

No branches or pull requests

1 participant