mention extendedmaterial in the stdmat docs#23247
mention extendedmaterial in the stdmat docs#23247alice-i-cecile merged 2 commits intobevyengine:mainfrom
Conversation
| /// | ||
| /// The `StandardMaterial` can be extended with more data and custom | ||
| /// shaders using [`ExtendedMaterial`]. Examples of how to do this can | ||
| /// be found in the Bevy examples. |
There was a problem hiding this comment.
Is it not possible to link to examples in docs comment?
There was a problem hiding this comment.
I'm not sure actually, and can't find a simple reference for how it would be written. Neither StandardMaterial nor ExtendedMaterial seems to have scraped examples, etc at the moment. The specific example files exist in the docs, but not at their "original filepaths" (ex: examples/3d/vertex_colors.rs vs src/vertex_colors/vertex_colors.rs, and if we used a direct link I'm not sure it would fail loudly if we ever moved the example files in the repo?
I can play around a bit later to figure it out, but don't have that much time to fit it in over the next day or two.
IceSentry
left a comment
There was a problem hiding this comment.
Would be nice to have a link to the example if possible, but other than that LGTM
Objective
Some people don't know
ExtendedMaterialexists and that it can be used to extend theStandardMaterialwith custom data and shaders.Solution
We can mention it on the
StandardMaterialdocs.