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:
@@ -44,6 +44,7 @@
|
||||
#import "KRNode.h"
|
||||
class KRBoundingVolume;
|
||||
class KRInstance;
|
||||
class KRDirectionalLight;
|
||||
|
||||
using std::vector;
|
||||
|
||||
@@ -58,6 +59,7 @@ public:
|
||||
static KRScene *LoadXML(const std::string& path);
|
||||
|
||||
KRNode *getRootNode();
|
||||
KRDirectionalLight *getFirstDirectionalLight();
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
@@ -67,8 +69,11 @@ public:
|
||||
|
||||
KRBoundingVolume getExtents(KRContext *pContext);
|
||||
private:
|
||||
KRDirectionalLight *findFirstDirectionalLight(KRNode &node);
|
||||
|
||||
KRNode *m_pRootNode;
|
||||
KRBoundingVolume *m_pExtents;
|
||||
KRDirectionalLight *m_pFirstDirectionalLight;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user