Added follow cam

Added "Controlled" mesh classes
Added Global Lighting Class
Added Gamepad controls
Split terrain nodes into Height and Perlin classes
Fixed Splitmesh node stuff
This commit is contained in:
iDunnoDev
2022-05-09 17:50:22 +01:00
committed by iDunnoDev
parent bc906064e5
commit f6bba67897
58 changed files with 1743 additions and 351 deletions

View File

@ -0,0 +1,24 @@
#include "ControlledMeshNode.h"
ControlledMeshNode::ControlledMeshNode(wstring name, wstring modelName) : MeshNode(name, modelName), ObjectNode()
{
}
void ControlledMeshNode::Update(FXMMATRIX& currentWorldTransformation)
{
ObjectNode::Update(_worldTransformation);
}
bool ControlledMeshNode::Initialise(void)
{
if (!MeshNode::Initialise())
{
return false;
}
return true;
}
XMMATRIX ControlledMeshNode::GetWorldTransformation() const
{
return XMLoadFloat4x4(&_combinedWorldTransformation);
}