bringback our colorful avatar
This commit is contained in:
parent
85cf9e405e
commit
f16f07b36f
1 changed files with 1 additions and 1 deletions
|
@ -1111,7 +1111,7 @@ float4 polychrome_sprite_fragment(PolychromeSpriteFragmentInput input): SV_Targe
|
|||
float distance = quad_sdf(input.position.xy, sprite.bounds, sprite.corner_radii);
|
||||
|
||||
float4 color = sample;
|
||||
if (sprite.grayscale) {
|
||||
if ((sprite.grayscale & 0xFFu) != 0u) {
|
||||
float3 grayscale = dot(color.rgb, GRAYSCALE_FACTORS);
|
||||
color = float4(grayscale, sample.a);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue