mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 03:13:27 -10:00
Safari's WGSL holds to the spec (a let can't hold a texture or sampler; Chrome's Tint lets it through). Bevy's PBR shaders do it in every mesh with UVs, so raea-web drew nothing in Safari: "Fragment module is invalid" for any sphere or model. @raea/web's loadRaea now patches GPUDevice.createShaderModule once (sdk/web/src/wgsl.ts) to inline those lets through the rest of their block, so the released engine (web-ad67361) draws in Safari 27: checked in Ideate's 3D scene via safaridriver (spheres, shadows, fog, point lights). Unit tests: sdk/web/test/unit/wgsl.test.ts. The vendored bevy_pbr shaders could be fixed at the source with the next web build (30 sites). Co-authored-by: shinyobjectz <[email protected]>