Add draw call sorting keys generation during draw calls collection (async)
This commit is contained in:
@@ -123,7 +123,7 @@ void TerrainChunk::Draw(const RenderContext& renderContext) const
|
||||
// Submit draw call
|
||||
auto drawModes = (DrawPass)(_patch->_terrain->DrawModes & renderContext.View.Pass & (uint32)drawCall.Material->GetDrawModes());
|
||||
if (drawModes != DrawPass::None)
|
||||
renderContext.List->AddDrawCall(drawModes, flags, drawCall, true);
|
||||
renderContext.List->AddDrawCall(renderContext, drawModes, flags, drawCall, true);
|
||||
}
|
||||
|
||||
void TerrainChunk::Draw(const RenderContext& renderContext, MaterialBase* material, int32 lodIndex) const
|
||||
@@ -179,7 +179,7 @@ void TerrainChunk::Draw(const RenderContext& renderContext, MaterialBase* materi
|
||||
// Submit draw call
|
||||
auto drawModes = (DrawPass)(_patch->_terrain->DrawModes & renderContext.View.Pass & (uint32)drawCall.Material->GetDrawModes());
|
||||
if (drawModes != DrawPass::None)
|
||||
renderContext.List->AddDrawCall(drawModes, flags, drawCall, true);
|
||||
renderContext.List->AddDrawCall(renderContext, drawModes, flags, drawCall, true);
|
||||
}
|
||||
|
||||
bool TerrainChunk::Intersects(const Ray& ray, Real& distance)
|
||||
|
||||
Reference in New Issue
Block a user