2012-04-05 23:09:41 +00:00
|
|
|
//
|
|
|
|
|
// KRDirectionalLight.h
|
|
|
|
|
// KREngine
|
|
|
|
|
//
|
|
|
|
|
// Created by Kearwood Gilbert on 12-04-05.
|
|
|
|
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef KREngine_KRDirectionalLight_h
|
|
|
|
|
#define KREngine_KRDirectionalLight_h
|
|
|
|
|
|
|
|
|
|
#import "KRLight.h"
|
2012-04-14 02:15:35 +00:00
|
|
|
#import "KRMat4.h"
|
2012-04-05 23:09:41 +00:00
|
|
|
|
|
|
|
|
class KRDirectionalLight : public KRLight {
|
|
|
|
|
|
|
|
|
|
public:
|
2012-04-26 09:06:45 +00:00
|
|
|
|
2012-08-29 21:43:11 +00:00
|
|
|
KRDirectionalLight(KRScene &scene, std::string name);
|
2012-04-12 00:43:53 +00:00
|
|
|
virtual ~KRDirectionalLight();
|
2012-04-05 23:09:41 +00:00
|
|
|
|
2012-04-12 00:43:53 +00:00
|
|
|
virtual std::string getElementName();
|
2012-04-26 09:06:45 +00:00
|
|
|
KRVector3 getLocalLightDirection();
|
|
|
|
|
KRVector3 getWorldLightDirection();
|
2012-04-13 06:40:53 +00:00
|
|
|
|
|
|
|
|
#if TARGET_OS_IPHONE
|
|
|
|
|
|
2012-09-11 03:06:35 +00:00
|
|
|
virtual void render(KRCamera *pCamera, KRContext *pContext, KRBoundingVolume &frustrumVolume, KRMat4 &viewMatrix, KRVector3 &cameraPosition, KRVector3 &lightDirection, KRMat4 *pShadowMatrices, GLuint *shadowDepthTextures, int cShadowBuffers, KRNode::RenderPass renderPass);
|
2012-04-13 06:40:53 +00:00
|
|
|
#endif
|
2012-04-14 02:15:35 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
KRMat4 m_modelMatrix;
|
2012-04-05 23:09:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|