TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ AddElevation()

void Mesh::AddElevation ( float  elevation,
int  x,
int  y 
)

Definition at line 401 of file Mesh.cpp.

402{
403 if(!vert)
404 {
405 return;
406 }
407
408 int i = x + y * res;
409
410 if (i > vertexCount)
411 {
412 return;
413 }
414
415 vert[i].position.y += elevation;
416}