mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
83a358bf33
# Objective - The current shader code is misleading since it makes it look like a struct is passed to the bind group 0 but in reality only the color is passed. They just happen to have the exact same memory layout so wgsl doesn't complain and it works. - The struct is defined after the `impl Material` block which is backwards from pretty much every other usage of the `impl` block in bevy. ## Solution - Remove the unnecessary struct in the shader - move the impl block |
||
---|---|---|
.. | ||
android-res/mipmap-mdpi | ||
branding | ||
data | ||
docs | ||
environment_maps | ||
fonts | ||
models | ||
pixel | ||
scenes | ||
shaders | ||
sounds | ||
textures |