bevy/assets/shaders
IceSentry 83a358bf33
Improve shader_material example (#10547)
# 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
2023-11-20 10:24:02 +00:00
..
animate_shader.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
array_texture.wgsl double sided normals: fix apply_normal_mapping calls (#10330) 2023-11-01 16:40:25 +00:00
circle_shader.wgsl Add UI Materials (#9506) 2023-11-03 22:33:01 +00:00
cubemap_unlit.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
custom_gltf_2d.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
custom_material.frag Improve shader_material example (#10547) 2023-11-20 10:24:02 +00:00
custom_material.vert fix shader_material_glsl example (#9513) 2023-08-21 07:58:21 +00:00
custom_material.wgsl Improve shader_material example (#10547) 2023-11-20 10:24:02 +00:00
custom_material_2d.wgsl Add shader_material_2d example (#10542) 2023-11-14 02:18:25 +00:00
custom_material_import.wgsl fix custom shader imports (#10030) 2023-10-06 01:34:57 +00:00
custom_material_screenspace_texture.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
custom_vertex_attribute.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
extended_material.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
fallback_image_test.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
game_of_life.wgsl Use a single line for of large binding lists (#9849) 2023-09-19 22:17:44 +00:00
instancing.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
line_material.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
post_processing.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
shader_defs.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
show_prepass.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
texture_binding_array.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
tonemapping_test_patterns.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00