1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Implement rendering pipeline and post-processing (#12465)

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
This commit is contained in:
x2048
2022-09-06 08:25:18 +02:00
committed by GitHub
parent 464043b8ab
commit ff6dcfea82
32 changed files with 1476 additions and 565 deletions

View File

@@ -21,23 +21,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include "stereo.h"
class RenderingCoreInterlaced : public RenderingCoreStereo
class InitInterlacedMaskStep : public TrivialRenderStep
{
protected:
video::ITexture *left = nullptr;
video::ITexture *right = nullptr;
video::ITexture *mask = nullptr;
video::SMaterial mat;
void initMaterial();
void initTextures() override;
void clearTextures() override;
void initMask();
void useEye(bool right) override;
void resetEye() override;
void merge();
public:
RenderingCoreInterlaced(IrrlichtDevice *_device, Client *_client, Hud *_hud);
void drawAll() override;
InitInterlacedMaskStep(TextureBuffer *buffer, u8 index);
void run(PipelineContext &context);
private:
TextureBuffer *buffer;
video::ITexture *last_mask { nullptr };
u8 index;
};
void populateInterlacedPipeline(RenderPipeline *pipeline, Client *client);