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

Method SetupPatchHeightMap

Source/Engine/Terrain/Terrain.cpp:411–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409#if TERRAIN_EDITING
410
411bool Terrain::SetupPatchHeightMap(const Int2& patchCoord, int32 heightMapLength, const float* heightMap, const byte* holesMask, bool forceUseVirtualStorage)
412{
413 auto patch = GetPatch(patchCoord);
414 if (patch)
415 {
416 return patch->SetupHeightMap(heightMapLength, heightMap, holesMask, forceUseVirtualStorage);
417 }
418 return true;
419}
420
421bool Terrain::SetupPatchSplatMap(const Int2& patchCoord, int32 index, int32 splatMapLength, const Color32* splatMap, bool forceUseVirtualStorage)
422{

Callers 1

UpdateMaterialMethod · 0.45

Calls 2

SetupHeightMapMethod · 0.80
GetPatchFunction · 0.70

Tested by

no test coverage detected