From 9b950e7cbd13bf367202f4508e589538cfd09526 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Sun, 16 Jun 2024 11:58:33 +0200 Subject: [PATCH] Fix premultiplied alpha in the g2 image shader --- KongShaders/g2.kong | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KongShaders/g2.kong b/KongShaders/g2.kong index c9bca5632..45c88c922 100644 --- a/KongShaders/g2.kong +++ b/KongShaders/g2.kong @@ -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; }