Graphics: Add shadow mapping

Former-commit-id: ca404bee246991eab98df35396e3010ec5165c43
This commit is contained in:
Lynix
2015-07-05 23:57:54 +02:00
parent 4d07735b85
commit 75972fec36
10 changed files with 206 additions and 58 deletions

View File

@@ -68,6 +68,7 @@ class NAZARA_GRAPHICS_API NzAbstractRenderQueue
{
NzColor color;
NzVector3f position;
NzTexture* shadowMap;
float ambientFactor;
float attenuation;
float diffuseFactor;
@@ -78,8 +79,10 @@ class NAZARA_GRAPHICS_API NzAbstractRenderQueue
struct SpotLight
{
NzColor color;
NzMatrix4f transformMatrix;
NzVector3f direction;
NzVector3f position;
NzTexture* shadowMap;
float ambientFactor;
float attenuation;
float diffuseFactor;