bevy/assets/shaders
François Mockers 0ab477e266 Fix wesl in wasm and webgl2 (#18591)
# Objective

- feature `shader_format_wesl` doesn't compile in Wasm
- once fixed, example `shader_material_wesl` doesn't work in WebGL2

## Solution

- remove special path handling when loading shaders. this seems like a
way to escape the asset folder which we don't want to allow, and can't
compile on android or wasm, and can't work on iOS (filesystem is rooted
there)
- pad material so that it's 16 bits. I couldn't get conditional
compilation to work in wesl for type declaration, it fails to parse
- the shader renders the color `(0.0, 0.0, 0.0, 0.0)` when it's not a
polka dot. this renders as black on WebGPU/metal/..., and white on
WebGL2. change it to `(0.0, 0.0, 0.0, 1.0)` so that it's black
everywhere
2025-03-28 23:33:00 +01:00
..
animate_shader.wgsl
array_texture.wgsl
automatic_instancing.wgsl Add user supplied mesh tag (#17648) 2025-02-10 22:38:13 +00:00
bindless_material.wgsl Reimplement bindless storage buffers. (#17994) 2025-03-10 21:32:19 +00:00
cubemap_unlit.wgsl
custom_clustered_decal.wgsl Implement basic clustered decal projectors. (#17315) 2025-01-26 20:13:39 +00:00
custom_gltf_2d.wgsl
custom_material_2d.wgsl
custom_material_import.wgsl
custom_material_screenspace_texture.wgsl
custom_material.frag
custom_material.vert examples(shaders/glsl): Update GLSL Shader Example Camera View uniform (#15865) 2024-10-19 01:08:55 +00:00
custom_material.wesl Fix wesl in wasm and webgl2 (#18591) 2025-03-28 23:33:00 +01:00
custom_material.wgsl
custom_phase_item.wgsl
custom_stencil.wgsl Add a custom render phase example (#16916) 2025-02-10 21:17:37 +00:00
custom_ui_material.wgsl ui_material example webgl2 fix (#17852) 2025-02-13 20:52:26 +00:00
custom_vertex_attribute.wgsl
extended_material.wgsl
fallback_image_test.wgsl
game_of_life.wgsl
gpu_readback.wgsl
instancing.wgsl
irradiance_volume_voxel_visualization.wgsl Cluster light probes using conservative spherical bounds. (#13746) 2024-12-05 13:07:10 +00:00
line_material.wgsl
post_processing.wgsl
shader_defs.wgsl
show_prepass.wgsl
specialized_mesh_pipeline.wgsl Fix non-crate typos (#18219) 2025-03-11 06:17:48 +00:00
storage_buffer.wgsl Add user supplied mesh tag (#17648) 2025-02-10 22:38:13 +00:00
texture_binding_array.wgsl
tonemapping_test_patterns.wgsl Fix non-crate typos (#18219) 2025-03-11 06:17:48 +00:00
util.wesl Fix wesl in wasm and webgl2 (#18591) 2025-03-28 23:33:00 +01:00
water_material.wgsl