We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d048c53 commit 41b0262Copy full SHA for 41b0262
gpu-pipeline/webgpu/gpu-shaders.js
@@ -64,7 +64,7 @@ struct SizeParams {
64
fn main(@location(0) fragUV : vec2<f32>) -> @location(0) vec4<f32> {
65
// The user-facing camera is mirrored, flip horizontally.
66
let coord = vec2(1.0 - fragUV.x, fragUV.y);
67
- let src_color = textureSampleLevel(myTexture, mySampler, coord);
+ let src_color = textureSampleBaseClampToEdge(myTexture, mySampler, coord);
68
69
let rowCol = vec2<i32>(i32(coord.y * f32(size.height)), i32(coord.x * f32(size.width)));
70
let probability = (buf[rowCol.x * size.width + rowCol.y]).a;
0 commit comments