| 226 | } |
| 227 | |
| 228 | void Terrain::DrawChunk(const RenderContext& renderContext, const Int2& patchCoord, const Int2& chunkCoord, MaterialBase* material, int32 lodIndex) const |
| 229 | { |
| 230 | auto patch = GetPatch(patchCoord); |
| 231 | if (patch) |
| 232 | { |
| 233 | const auto chunk = patch->GetChunk(chunkCoord); |
| 234 | if (chunk) |
| 235 | { |
| 236 | chunk->Draw(renderContext, material, lodIndex); |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | #if TERRAIN_USE_PHYSICS_DEBUG |
| 242 |