diff --git a/crates/bevy_core_pipeline/src/contrast_adaptive_sharpening/robust_contrast_adaptive_sharpening.wgsl b/crates/bevy_core_pipeline/src/contrast_adaptive_sharpening/robust_contrast_adaptive_sharpening.wgsl index 252d97c9d6c3e..03b29976e7ed7 100644 --- a/crates/bevy_core_pipeline/src/contrast_adaptive_sharpening/robust_contrast_adaptive_sharpening.wgsl +++ b/crates/bevy_core_pipeline/src/contrast_adaptive_sharpening/robust_contrast_adaptive_sharpening.wgsl @@ -65,7 +65,7 @@ fn fragment(in: FullscreenVertexOutput) -> @location(0) vec4 { let b = textureSample(screenTexture, samp, in.uv, vec2(0, -1)).rgb; let d = textureSample(screenTexture, samp, in.uv, vec2(-1, 0)).rgb; // We need the alpha value of the pixel we're working on for the output - let e = textureSample(screenTexture, samp, in.uv).rgbw; + let e = textureSample(screenTexture, samp, in.uv).rgba; let f = textureSample(screenTexture, samp, in.uv, vec2(1, 0)).rgb; let h = textureSample(screenTexture, samp, in.uv, vec2(0, 1)).rgb; // Min and max of ring.