Merge gl_light_shadowmap and gl_light_raytrace cvars as gl_light_shadows

Rename gl_shadowmap_filter to gl_light_shadow_filter as it applies to raytraced shadows as well
This commit is contained in:
Magnus Norddahl 2023-10-15 16:14:00 +02:00
commit 5e3d6e39a0
10 changed files with 44 additions and 33 deletions

View file

@ -299,8 +299,8 @@ void VkRenderState::ApplyRenderPass(int dt)
pipelineKey.ShaderKey.LightMode = 1; // Software
}
pipelineKey.ShaderKey.UseShadowmap = gl_light_shadowmap;
pipelineKey.ShaderKey.UseRaytrace = gl_light_raytrace;
pipelineKey.ShaderKey.UseShadowmap = gl_light_shadows == 1;
pipelineKey.ShaderKey.UseRaytrace = gl_light_shadows == 2;
pipelineKey.ShaderKey.GBufferPass = mRenderTarget.DrawBuffers > 1;