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

Method DrawPatch

Source/Engine/Terrain/Terrain.cpp:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void 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
228void Terrain::DrawChunk(const RenderContext& renderContext, const Int2& patchCoord, const Int2& chunkCoord, MaterialBase* material, int32 lodIndex) const
229{

Callers 1

DrawMethod · 0.80

Calls 2

GetPatchFunction · 0.70
DrawMethod · 0.45

Tested by

no test coverage detected