Skip to content

Commit

Permalink
shader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sava41 committed Nov 18, 2024
1 parent cec6edc commit d20d6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/shaders/maskmultiply.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ fn inv_mask_multipy(@builtin(global_invocation_id) id: vec3<u32>) {
let input = textureLoad(inputTexture, vec2<u32>(id.x, id.y), 0);
let mask = textureLoad(inputMask, vec2<u32>(id.x, id.y), 0);

textureStore(outputTexture, id.xy, vec4<f32>(input.rgb * mask.r, input.a * mask.r));
textureStore(outputTexture, id.xy, vec4<f32>(input.rgb * (1.0 - mask.r), input.a * (1.0 - mask.r)));
}

0 comments on commit d20d6b5

Please sign in to comment.