27 lines
567 B
C++
27 lines
567 B
C++
#ifndef RenderPathSpotShadow_h__
|
|||
|
|
#define RenderPathSpotShadow_h__
|
||
|
|
|
||
|
|
#include "renderpath/IRenderPathShadow.h"
|
||
|
|
|
||
|
|
namespace LifeGraphics
|
||
|
|
{
|
||
|
|
namespace RenderPath
|
||
|
|
{
|
||
|
|
class RenderPathSpotShadow : public IRenderPathShadow
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
RenderPathSpotShadow(ShadowMapManager* sm);
|
||
|
|
~RenderPathSpotShadow();
|
||
|
|
void Render(LifeGraphics::IScene* pScene);
|
||
|
|
void SetLight(const Light& _light);
|
||
|
|
ITexture2D* GetShadowMap()
|
||
|
|
{
|
||
|
|
return renderTarget;
|
||
|
|
}
|
||
|
|
private:
|
||
|
|
ITexture2D* depthTarget;
|
||
|
|
ITexture2D* renderTarget;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#endif // RenderPathSpotShadow_h__
|