Files
directx-plane-game/Graphics2/GlobalLighting.h
iDunnoDev 616f68bf8b Added Comments
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
2022-06-13 16:41:25 +01:00

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;
};