Skip to content

Commit 6c35ae4

Browse files
committed
smaa: use textureSampleLevel for WebGPU support
1 parent 39751f2 commit 6c35ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_anti_aliasing/src/smaa/smaa.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ fn area(dist: vec2<f32>, e1: f32, e2: f32, offset: f32) -> vec2<f32> {
894894
tex_coord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;
895895

896896
// Do it!
897-
return textureSample(area_texture, edges_sampler, tex_coord).rg;
897+
return textureSampleLevel(area_texture, edges_sampler, tex_coord, 0.0).rg;
898898
}
899899

900900
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)