Remove mAlphaThreshold

This commit is contained in:
Magnus Norddahl 2023-04-24 22:50:04 +02:00
commit eef9b05f46
2 changed files with 4 additions and 9 deletions

View file

@ -244,7 +244,7 @@ void VkRenderState::ApplyRenderPass(int dt)
pipelineKey.ShaderKey.EffectState = mTextureEnabled ? effectState : SHADER_NoTexture;
if (r_skipmats && pipelineKey.ShaderKey.EffectState >= 3 && pipelineKey.ShaderKey.EffectState <= 4)
pipelineKey.ShaderKey.EffectState = 0;
pipelineKey.ShaderKey.AlphaTest = mAlphaThreshold >= 0.f;
pipelineKey.ShaderKey.AlphaTest = mStreamData.uAlphaThreshold >= 0.f;
}
int uTextureMode = GetTextureModeAndFlags((mMaterial.mMaterial && mMaterial.mMaterial->Source()->isHardwareCanvas()) ? TM_OPAQUE : TM_NORMAL);
@ -395,8 +395,6 @@ void VkRenderState::ApplyStreamData()
else
mStreamData.timer = 0.0f;
mStreamData.uAlphaThreshold = mAlphaThreshold;
if (mMaterial.mMaterial)
{
auto source = mMaterial.mMaterial->Source();