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

Use alpha for rect painting (audulus#4)
  • Loading branch information
jrmoulton authored and Zoxc committed Jan 4, 2024
1 parent f7d731b commit dfeced7
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 @@ -720,7 +720,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 dfeced7

Please sign in to comment.