Deferred lighting now working with directional lights

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4047
This commit is contained in:
kearwood
2012-04-14 02:15:35 +00:00
parent 97d8054cd0
commit 2ead2995d5
12 changed files with 183 additions and 94 deletions

View File

@@ -10,6 +10,7 @@
#define KREngine_KRDirectionalLight_h
#import "KRLight.h"
#import "KRMat4.h"
class KRDirectionalLight : public KRLight {
@@ -23,6 +24,9 @@ public:
virtual void render(KRCamera *pCamera, KRContext *pContext, KRBoundingVolume &frustrumVolume, bool bRenderShadowMap, KRMat4 &viewMatrix, KRVector3 &cameraPosition, KRVector3 &lightDirection, KRMat4 *pShadowMatrices, GLuint *shadowDepthTextures, int cShadowBuffers, int gBufferPass);
#endif
private:
KRMat4 m_modelMatrix;
};