Skip to content

Commit

Permalink
Fix premultiplied alpha in the g2 image shader
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jun 16, 2024
1 parent d2ccc55 commit 9b950e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KongShaders/g2.kong
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const kinc_g2_sampler: sampler;

fun kinc_g2_image_fragment(input: kinc_g2_image_vertex_out): float4 {
var texcolor: float4 = sample(kinc_g2_texture, kinc_g2_sampler, input.tex) * input.col;
//texcolor.rgb *= color.a;
texcolor.rgb *= input.col.a;
return texcolor;
}

Expand Down

0 comments on commit 9b950e7

Please sign in to comment.