From 068478034843fe78628e4f8ecffca97eab9c50bc Mon Sep 17 00:00:00 2001 From: myT <> Date: Wed, 12 Feb 2025 03:05:58 +0100 Subject: [PATCH] fixed incorrect drops of pre-multiplied alpha OIT fragments - it assumes texture data is actually pre-multiplied - trusting user-generated content to make sense is misguided --- code/renderer/shaders/crp/transp_draw.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderer/shaders/crp/transp_draw.hlsl b/code/renderer/shaders/crp/transp_draw.hlsl index 2398ca7..e39a2e1 100644 --- a/code/renderer/shaders/crp/transp_draw.hlsl +++ b/code/renderer/shaders/crp/transp_draw.hlsl @@ -92,7 +92,7 @@ bool IsFragmentUseless(uint blendBits, float4 color) { return true; } - if((blendBits == GLS_BLEND_STD_ALPHA || blendBits == GLS_BLEND_PMUL_ALPHA) && + if(blendBits == GLS_BLEND_STD_ALPHA && color.a < epsilon) { return true;