Revert default mesh materials#15930
Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom Oct 15, 2024
Merged
Conversation
tychedelia
approved these changes
Oct 15, 2024
ecoskey
approved these changes
Oct 15, 2024
Contributor
ecoskey
left a comment
There was a problem hiding this comment.
Have we decided on not needing/wanting a debug warning at least? Otherwise LGTM
Contributor
Author
|
A warning for missing materials would probably require adding |
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
Closes #15799.
Many rendering people and maintainers are in favor of reverting default mesh materials added in #15524, especially as the migration to required component is already large and heavily breaking.
Solution
Revert default mesh materials, and adjust docs accordingly.
extract_default_materialsclear_material_instances, and move the logic back intoextract_mesh_materialsHasMaterial2dandHasMaterial3dColor::srgb(1.0, 0.0, 1.0), while 3D usesColor::srgb(1.0, 0.0, 0.5). Not sure if this is intended.There is now no indication at all about missing materials for
Mesh2dandMesh3d. Having a mesh without a material renders nothing.Testing
I ran
2d_shapes,mesh2d_manual, and3d_shapes, with and without mesh material components.