27 lines
577 B
C++
27 lines
577 B
C++
#ifndef RenderPathOmniShadow_h__
|
|||
|
|
#define RenderPathOmniShadow_h__
|
||
|
|
|
||
|
|
#include "renderpath/IRenderPathShadow.h"
|
||
|
|
|
||
|
|
#include "constants.h"
|
||
|
|
|
||
|
|
namespace LifeGraphics { namespace RenderPath
|
||
|
|
{
|
||
|
|
class RenderPathOmniShadow : public IRenderPathShadow
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
RenderPathOmniShadow(ShadowMapManager* sm);
|
||
|
|
~RenderPathOmniShadow();
|
||
|
|
void SetLight(const Light& _light);
|
||
|
|
void Render(IScene* pScene);
|
||
|
|
ITexture2D* GetShadowMap()
|
||
|
|
{
|
||
|
|
return renderTarget;
|
||
|
|
}
|
||
|
|
protected:
|
||
|
|
Camera cam[6];
|
||
|
|
ITexture2D* depthTarget;
|
||
|
|
ITexture2D* renderTarget;
|
||
|
|
};
|
||
|
|
}}
|
||
|
|
#endif // RenderPathOmniShadow_h__
|