86{
87 while (appState->states.remeshing);
88
89 *isRemeshing = true;
90
91
92
93
94
95
96
97
98 ExecuteKernels();
99 ExecuteCPUGenerators();
100
101
102 if (appState->mode == ApplicationMode::TERRAIN)
103 {
104 appState->models.coreTerrain->mesh->RecalculateNormals();
105 appState->models.coreTerrain->UploadToGPU();
106 }
107
108 else if (appState->mode == ApplicationMode::CUSTOM_BASE)
109 {
110 appState->models.customBase->mesh->RecalculateNormals();
111 appState->models.customBase->UploadToGPU();
112 }
113
114 *isRemeshing = false;
115}