Add RenderState.SetDepthFadeFalloff

This commit is contained in:
Magnus Norddahl 2024-09-08 20:32:30 +02:00
commit c62bb7a0f0
8 changed files with 20 additions and 3 deletions

View file

@ -258,6 +258,8 @@ void VkRenderState::ApplyRenderPass(int dt)
pipelineKey.ShaderKey.Detailmap = (uTextureMode & TEXF_Detailmap) != 0;
pipelineKey.ShaderKey.Glowmap = (uTextureMode & TEXF_Glowmap) != 0;
pipelineKey.ShaderKey.DepthFadeFalloff = mSurfaceUniforms.uDepthFadeFalloff > 0.0f;
// The way GZDoom handles state is just plain insanity!
int fogset = 0;
if (mFogEnabled)