30 lines
721 B
C++
30 lines
721 B
C++
#pragma once
|
|
#include "RenderPath.h"
|
|
#include "Graphics/RenderPass/DepthPrepass.h"
|
|
#include "Graphics/RenderPass/LightCullingPass.h"
|
|
#include "Graphics/RenderPass/BasePass.h"
|
|
|
|
namespace Seele
|
|
{
|
|
DECLARE_REF(Scene)
|
|
DECLARE_REF(CameraActor)
|
|
class SceneRenderPath : public RenderPath
|
|
{
|
|
public:
|
|
SceneRenderPath(PScene scene, Gfx::PGraphics graphics, Gfx::PViewport target, PCameraActor source);
|
|
virtual ~SceneRenderPath();
|
|
void setTargetScene(PScene scene);
|
|
virtual void init();
|
|
virtual void beginFrame();
|
|
virtual void render();
|
|
virtual void endFrame();
|
|
|
|
protected:
|
|
PScene scene;
|
|
PRenderGraph renderGraph;
|
|
PDepthPrepass depthPrepass;
|
|
PLightCullingPass lightCullingPass;
|
|
PBasePass basePass;
|
|
|
|
};
|
|
} // namespace Seele
|