distinguish transparent DL passes from opaque ones

This commit is contained in:
myT 2023-11-18 03:54:23 +01:00
parent b918b24304
commit d160e7069b

View file

@ -1494,15 +1494,19 @@ void World::DrawLitSurfaces(dlight_t* dl, bool opaque)
void World::DrawDynamicLights(bool opaque)
{
SCOPED_RENDER_PASS("Dynamic Lights", 1.0f, 0.25f, 0.25f);
if(r_dynamiclight->integer == 0 ||
backEnd.refdef.num_dlights == 0 ||
backEnd.viewParms.isMirror)
{
return;
}
SCOPED_RENDER_PASS(opaque ? "DL Opaque" : "DL Transp.", 1.0f, 0.25f, 0.25f);
if(backEnd.refdef.num_dlights == 0)
{
return;
}
CmdBindRootSignature(dlRootSignature);
CmdBindDescriptorTable(dlRootSignature, grp.descriptorTable);
CmdBindRenderTargets(1, &grp.renderTarget, &depthTexture);