mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-29 23:32:03 +00:00
distinguish transparent DL passes from opaque ones
This commit is contained in:
parent
b918b24304
commit
d160e7069b
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue