MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DrawChunk

Method DrawChunk

Source/Engine/Terrain/Terrain.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void 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

Callers 3

DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80

Calls 2

GetPatchFunction · 0.70
DrawMethod · 0.45

Tested by

no test coverage detected