Dynamic UI Materials#20895
Conversation
Co-authored-by: Sludge <sludge.phd+gh@gmail.com>
Co-authored-by: Sludge <sludge.phd+gh@gmail.com>
|
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
IceSentry
left a comment
There was a problem hiding this comment.
I don't like how this introduces a difference with Material and Material2d. Also, I'm not sure of the potential side effects of adding 'static to the trait bound.
i think the best solution is to give them the same change but that seems more suited for separate PRs |
|
Hi! I'm definitely interested in supporting this use case, and indeed it was one of my original motivations for #14856 which was the work that inspired #19667. In the case of 3d materials, I discovered that adding the |
|
okie dokie, that's fine, since bevy is modular I'm able to use this version instead of |
Objective
background: shader(...)to CSS stylesheets that style Bevy UI. This requires dynamic shadersSolution
vertex_shaderandfragment_shaderfunctions get a&selfparameter, and the code now calls those with the self and understands that the shader may varyTesting
Showcase
Migration
Users would just need to add a
&selfto their UI materials