
Added ability to hold shift and skip the terrain generation when loading Added ability for the perlin terrain to save a raw image of the terrain to use as a cache
22 lines
583 B
C++
22 lines
583 B
C++
#pragma once
|
|
#include "DirectXCore.h"
|
|
|
|
// Class for holding the global lighting settings, this saves having to go through every node to change these values
|
|
class GlobalLighting
|
|
{
|
|
public:
|
|
GlobalLighting();
|
|
~GlobalLighting();
|
|
|
|
void SetAmbientLight(XMFLOAT4 ambientLight);
|
|
XMFLOAT4 GetAmbientLight() const;
|
|
void SetDirectionalLight(FXMVECTOR direction, XMFLOAT4 lightColor);
|
|
XMVECTOR GetDirectionalLightDirection() const;
|
|
XMFLOAT4 GetDirectionalLightColor() const;
|
|
|
|
|
|
private:
|
|
XMFLOAT4 _ambientLight;
|
|
XMVECTOR _directionalLightVector;
|
|
XMFLOAT4 _directionalLightColor;
|
|
}; |