From 6363647195bc7d45cf82ff7b062c0bc337f7c689 Mon Sep 17 00:00:00 2001 From: Alvin Null Date: Sun, 10 Aug 2025 22:37:52 -0400 Subject: [PATCH] smaa: use textureSampleLevel for WebGPU support --- crates/bevy_anti_aliasing/src/smaa/smaa.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_anti_aliasing/src/smaa/smaa.wgsl b/crates/bevy_anti_aliasing/src/smaa/smaa.wgsl index 24dc6baa25902..7facd0f963716 100644 --- a/crates/bevy_anti_aliasing/src/smaa/smaa.wgsl +++ b/crates/bevy_anti_aliasing/src/smaa/smaa.wgsl @@ -894,7 +894,7 @@ fn area(dist: vec2, e1: f32, e2: f32, offset: f32) -> vec2 { tex_coord.y += SMAA_AREATEX_SUBTEX_SIZE * offset; // Do it! - return textureSample(area_texture, edges_sampler, tex_coord).rg; + return textureSampleLevel(area_texture, edges_sampler, tex_coord, 0.0).rg; } //-----------------------------------------------------------------------------