| 527 | #endif |
| 528 | |
| 529 | void Terrain::Draw(RenderContextBatch& renderContextBatch) |
| 530 | { |
| 531 | PROFILE_CPU(); |
| 532 | if (DrawSetup(renderContextBatch.GetMainContext())) |
| 533 | return; |
| 534 | HashSet<TerrainChunk*, RendererAllocation> drawnChunks; |
| 535 | for (RenderContext& renderContext : renderContextBatch.Contexts) |
| 536 | { |
| 537 | const DrawPass drawModes = DrawModes & renderContext.View.Pass; |
| 538 | if (drawModes == DrawPass::None) |
| 539 | continue; |
| 540 | DrawImpl(renderContext, drawnChunks); |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | void Terrain::Draw(RenderContext& renderContext) |
| 545 | { |
no test coverage detected