mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-09 22:22:09 +00:00
fixed GRP dynamic lights using the wrong vertex attributes
This commit is contained in:
parent
9712ffb17d
commit
6ed0ea19a8
1 changed files with 10 additions and 2 deletions
|
@ -608,8 +608,16 @@ void World::EndBatch()
|
|||
pixelRC.opaque = dlOpaque ? 1.0f : 0.0f;
|
||||
CmdSetRootConstants(dlRootSignature, ShaderStage::Pixel, &pixelRC);
|
||||
|
||||
BindVertexBuffers(batchHasStaticGeo, 0, 1);
|
||||
CmdDrawIndexed(indexCount, db.indexBuffer.batchFirst, batchHasStaticGeo ? 0 : db.vertexBuffers.batchFirst);
|
||||
if(batchHasStaticGeo)
|
||||
{
|
||||
BindVertexBuffers(batchHasStaticGeo, (uint32_t)stageIndex, 1);
|
||||
CmdDrawIndexed(indexCount, db.indexBuffer.batchFirst, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
BindVertexBuffers(batchHasStaticGeo, 0, 1);
|
||||
CmdDrawIndexed(indexCount, db.indexBuffer.batchFirst, db.vertexBuffers.batchFirst);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue