Skip to content

Commit

Permalink
Fix box shadow alpha (audulus#3)
Browse files Browse the repository at this point in the history
The alpha channel was only being used to "dim"
the shadow effect. Now that "dimming" value is
multiplied by the alpha channel as well
  • Loading branch information
jrmoulton authored Nov 19, 2023
1 parent ed10537 commit 1640170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shader.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ fn fs_main(
y += step;
}

return s * vec4<f32>(paint.inner_color.rgb, value);
return s * vec4<f32>(paint.inner_color.rgb, value * paint.inner_color.a);
}

if(prim.prim_type == 8u) { // vgerGlyph
Expand Down

0 comments on commit 1640170

Please sign in to comment.