Specular calculations for deferred lighting in progress

Have integrated the position of the directional light in the scene graph (imported from fbx) with the forward renderer and deferred lighting renderer's directional light angle

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4048
This commit is contained in:
kearwood
2012-04-19 23:39:32 +00:00
parent 2ead2995d5
commit 21762174bf
14 changed files with 148 additions and 17 deletions

View File

@@ -35,6 +35,7 @@
#import "KREngine-common.h"
#import "KRMat4.h"
#import "KRVector2.h"
class KRCamera {
public:
@@ -42,6 +43,8 @@ public:
~KRCamera();
KRMat4 getProjectionMatrix();
const KRVector2 &getViewportSize();
void setViewportSize(const KRVector2 &size);
bool bEnablePerPixel;
bool bEnableDiffuseMap;
@@ -77,6 +80,8 @@ public:
bool bEnableVignette;
double vignette_radius;
double vignette_falloff;
KRVector2 m_viewportSize;
};
#endif