Skip to content

Commit

Permalink
Fix CAS shader alpha accessor (#16530)
Browse files Browse the repository at this point in the history
# Objective

Fixes #16528 

## Solution

Use `a` to access alpha instead of `w`
  • Loading branch information
cart authored Nov 27, 2024
1 parent 2a66bf0 commit a6e1397
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn fragment(in: FullscreenVertexOutput) -> @location(0) vec4<f32> {
let b = textureSample(screenTexture, samp, in.uv, vec2<i32>(0, -1)).rgb;
let d = textureSample(screenTexture, samp, in.uv, vec2<i32>(-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<i32>(1, 0)).rgb;
let h = textureSample(screenTexture, samp, in.uv, vec2<i32>(0, 1)).rgb;
// Min and max of ring.
Expand Down

0 comments on commit a6e1397

Please sign in to comment.