| 216 | } |
| 217 | |
| 218 | void Terrain::DrawPatch(const RenderContext& renderContext, const Int2& patchCoord, MaterialBase* material, int32 lodIndex) const |
| 219 | { |
| 220 | auto patch = GetPatch(patchCoord); |
| 221 | if (patch) |
| 222 | { |
| 223 | for (int32 i = 0; i < Terrain::ChunksCount; i++) |
| 224 | patch->Chunks[i].Draw(renderContext, material, lodIndex); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | void Terrain::DrawChunk(const RenderContext& renderContext, const Int2& patchCoord, const Int2& chunkCoord, MaterialBase* material, int32 lodIndex) const |
| 229 | { |