Added better perlin terrain generation
Added function to scatter models onto the terrain
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user