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

@ -1,5 +1,6 @@
#pragma once
#include "DirectXCore.h"
#include <string>
struct CBUFFER
{
@ -16,6 +17,13 @@ struct CBUFFER
float padding[2];
};
struct TerrainPopNode
{
std::wstring nodeBaseName;
std::wstring modelName;
float scaleFactor;
};
namespace SharedMethods
{
XMMATRIX RotateFromPoint(const float x, const float y, const float z, const XMMATRIX rotationMatrix);