Move MaterialProperties from bevy_pbr to bevy_material#21543
Closed
Zeophlite wants to merge 25 commits into
Closed
Move MaterialProperties from bevy_pbr to bevy_material#21543Zeophlite wants to merge 25 commits into
MaterialProperties from bevy_pbr to bevy_material#21543Zeophlite wants to merge 25 commits into
Conversation
82707d2 to
5f6c9ab
Compare
Contributor
|
You added a new feature but didn't update the readme. Please run |
Contributor
|
It looks like your PR has been selected for a highlight in the next release blog post, but you didn't provide a release note. Please review the instructions for writing release notes, then expand or revise the content in the release notes directory to showcase your changes. |
atlv24
reviewed
Oct 17, 2025
db3dad3 to
23ef4e8
Compare
Contributor
Author
|
I suggest reviewing commit by commit - commits are now in the following order:
Have a look at the migration guide for a summary of all moves |
883b81d to
92f5f95
Compare
This comment was marked as outdated.
This comment was marked as outdated.
…rialKey, ErasedMaterialKeyVTable, RenderPhaseType
…ge dummy to Image in MeshPipeline
…MeshInstanceFlags, RenderMeshInstanceCpu, RenderMeshInstanceGpu, PreviousGlobalTransform, RenderMeshInstanceShared, remove_mesh_input_uniform to bevy_render
…EXTRACTION_THRESHOLD_FACTOR, SkinByteOffset, SkinUniforms, SkinUniformInfo to bevy_render
…Gpu, RenderMeshQueueData to bevy_render
UvChannel migration
Contributor
Author
|
Alternative followup - Zeophlite#6 |
This was referenced Dec 6, 2025
This was referenced Jan 8, 2026
Merged
Contributor
Author
|
Superceded by #22426 , will keep this in draft, then close after that merges |
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jan 13, 2026
# Objective - extract material infrastructure to be usable for scene description without a renderer - rework of #21543 on top of #22408, you can view a clean diff here: https://github.com/tychedelia/bevy/compare/type-erase-more-materials...atlv24:ad/material2?expand=1 - this is the culmination of numerous crate splits and refactors leading up to this point, and the another step towards shared 2d and 3d rendering infrastructure deduplication. ## Solution - new crate bevy_material with MaterialProperties struct that lets one define when a material draws, how it behaves, what shaders it uses, specialization functions, and bind group layouts expected. ## Testing --------- Co-authored-by: charlotte 🌸 <charlotte.c.mcelwain@gmail.com> Co-authored-by: Daniel Skates <zeophlite@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
MaterialPropertiesfrombevy_pbrtobevy_material(new crate that doesn't depend onwgpu, justwgpu-types)bevy_gltfto no longer depend onbevy_pbrorbevy_render, see this follow-on Addbevy_gltf_renderZeophlite/bevy#6 orbevy_gltfno longer depends orbevy_pbrorbevy_renderZeophlite/bevy#5Solution
bevy_pbrtobevy_materialbevy_rendertobevy_materialbevy_pbrtobevy_renderTesting