35 lines
576 B
C++
35 lines
576 B
C++
#pragma once
|
|
#include "RenderPath3D.h"
|
|
|
|
|
|
class RenderPath3D_Forward :
|
|
public RenderPath3D
|
|
{
|
|
protected:
|
|
|
|
wiGraphics::Texture rtMain[2];
|
|
wiGraphics::Texture rtMain_resolved[2];
|
|
|
|
wiGraphics::RenderPass renderpass_depthprepass;
|
|
wiGraphics::RenderPass renderpass_main;
|
|
wiGraphics::RenderPass renderpass_transparent;
|
|
|
|
const constexpr wiGraphics::Texture* GetSceneRT_Read(int i) const
|
|
{
|
|
if (getMSAASampleCount() > 1)
|
|
{
|
|
return &rtMain_resolved[i];
|
|
}
|
|
else
|
|
{
|
|
return &rtMain[i];
|
|
}
|
|
}
|
|
|
|
void ResizeBuffers() override;
|
|
|
|
public:
|
|
void Render() const override;
|
|
};
|
|
|