Added better perlin terrain generation

Added function to scatter models onto the terrain
This commit is contained in:
iDunnoDev
2022-05-11 21:03:19 +01:00
committed by iDunnoDev
parent f6bba67897
commit b856b43209
26 changed files with 248 additions and 126 deletions

View File

@ -8,7 +8,9 @@
#include "WICTextureLoader.h"
#include "SharedMethods.h"
#include "SceneNode.h"
#include "SceneGraph.h"
#include "MeshNode.h"
#include "SplitMeshNode.h"
typedef struct TerrainVertex
{
@ -49,6 +51,8 @@ public:
void Render(void);
void virtual Shutdown(void);
void PopulateTerrain(SceneGraphPointer currentSceneGraph, vector<TerrainPopNode>& nodesForPop, int xStep, int zStep, float heightLower, float heightUpper, float slopeLower, float slopeUpper);
float GetHeightAtPoint(float x, float z, bool waterCollide = false);
bool CheckXBoundary(float x);
bool CheckZBoundary(float z);