MeshLib C++ Docs
Loading...
Searching...
No Matches
MRDepthPeelingGL.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerFwd.h"
3#include "MRRenderGLHelpers.h"
4
5namespace MR
6{
7
9class MRVIEWER_CLASS DepthPeelingGL
10{
11public:
13
16 MRVIEWER_API void reset( const Vector2i& size );
17
20 MRVIEWER_API bool doPasses( FramebufferData* bgFramebuffer );
21
23 MRVIEWER_API void draw();
24
26 int getNumPasses() const { return numPasses_; }
27 void setNumPasses( int passes ) { numPasses_ = passes; }
28private:
29 FramebufferData accumFB_;
31 int numPasses_{ 5 };
32};
33
34}
class to encapsulate depth peeling rendering passes as fall back if alpha sort is not available
Definition MRDepthPeelingGL.h:10
int getNumPasses() const
functions to control number of passes
Definition MRDepthPeelingGL.h:26
MRVIEWER_API bool doPasses(FramebufferData *bgFramebuffer)
MRVIEWER_API void reset(const Vector2i &size)
void setNumPasses(int passes)
Definition MRDepthPeelingGL.h:27
MRVIEWER_API void draw()
draws this result texture onto
MR_ADD_CTOR_DELETE_MOVE(DepthPeelingGL)
Definition MRRenderGLHelpers.h:214
Definition MRRenderGLHelpers.h:199
Definition MRCameraOrientationPlugin.h:8