vk: do not depth-test glow sprites

makes them more like gl ones

still not fully fixed though, need to work on their transparency, it should be also scaled
This commit is contained in:
Ivan 'provod' Avdeev 2023-02-23 20:07:06 -08:00
parent 4f6d51c368
commit 41809b8952
1 changed files with 2 additions and 2 deletions

View File

@ -169,9 +169,9 @@ static qboolean createPipelines( void )
case kRenderGlow:
spec_data.alpha_test_threshold = 0.f;
ci.depthWriteEnable = VK_FALSE;
ci.depthTestEnable = VK_TRUE;
ci.depthTestEnable = VK_FALSE; // Fake bloom, should be over geometry too
ci.blendEnable = VK_TRUE;
ci.colorBlendOp = VK_BLEND_OP_ADD; // TODO check
ci.colorBlendOp = VK_BLEND_OP_ADD;
ci.srcAlphaBlendFactor = ci.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
ci.dstAlphaBlendFactor = ci.dstColorBlendFactor = VK_BLEND_FACTOR_ONE;
break;