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
|
|
|
|
|
|
2013-01-11 03:21:19 +00:00
|
|
|
#include "KRLight.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();
|
2017-07-29 01:24:49 -07:00
|
|
|
Vector3 getLocalLightDirection();
|
|
|
|
|
Vector3 getWorldLightDirection();
|
2012-12-28 06:25:57 +00:00
|
|
|
|
2013-04-25 16:21:28 -07:00
|
|
|
virtual void render(KRCamera *pCamera, std::vector<KRPointLight *> &point_lights, std::vector<KRDirectionalLight *> &directional_lights, std::vector<KRSpotLight *>&spot_lights, const KRViewport &viewport, KRNode::RenderPass renderPass);
|
2013-04-08 21:40:53 -07:00
|
|
|
virtual KRAABB getBounds();
|
2012-04-14 02:15:35 +00:00
|
|
|
|
2012-11-15 22:05:25 +00:00
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
virtual int configureShadowBufferViewports(const KRViewport &viewport);
|
|
|
|
|
|
2012-04-05 23:09:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|