bevy/crates
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
..
bevy_a11y Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_animation Fix animation transitions affecting other entities (#18572) 2025-03-27 22:58:21 +01:00
bevy_app Fix misleading documentation of Main schedule (#18579) 2025-03-28 23:33:00 +01:00
bevy_asset Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
bevy_audio Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_color Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_core_pipeline Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_derive Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_dev_tools Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_diagnostic Update sysinfo version to 0.34.0 (#18581) 2025-03-28 23:33:00 +01:00
bevy_dylib Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_ecs Fix relationship macro for multiple named members fields (#18530) 2025-03-27 22:58:21 +01:00
bevy_encase_derive Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_gilrs Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_gizmos Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_gltf Revert PR #15481 to resolve a regression. (#18567) 2025-03-27 22:58:18 +01:00
bevy_image Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_input Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_input_focus Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_internal Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_log Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_macro_utils Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_math Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_mesh Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_mikktspace Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_pbr Tracy GPU support (#18490) 2025-03-28 23:33:00 +01:00
bevy_picking Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_platform_support Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_ptr Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_reflect Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_remote Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_render Fix wesl in wasm and webgl2 (#18591) 2025-03-28 23:33:00 +01:00
bevy_scene Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_sprite Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_state Fix misleading documentation of Main schedule (#18579) 2025-03-28 23:33:00 +01:00
bevy_tasks Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_text Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_time Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_transform Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_ui Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_utils Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_window Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00
bevy_winit Release 0.16.0-rc.2 2025-03-26 19:18:20 +01:00