mirror of
https://github.com/bevyengine/bevy
synced 2024-12-13 23:02:28 +00:00
594074149d
# Objective Fix the screenspace_texture example not working on the WebGPU examples page. Currently it fails with the following error in the browser console: ``` 1 error(s) generated while compiling the shader: :213:9 error: redeclaration of 'uv' let uv = coords_to_viewport_uv(position.xy, view.viewport); ^^ :211:14 note: 'uv' previously declared here @location(2) uv: vec2<f32>, ``` ## Solution Rename the shader variable `uv` to `viewport_uv` to prevent variable redeclaration error. |
||
---|---|---|
.. | ||
android-res/mipmap-mdpi | ||
branding | ||
data | ||
environment_maps | ||
fonts | ||
models | ||
pixel | ||
scenes | ||
shaders | ||
sounds | ||
textures |