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{
9
10
12class MRVIEWER_CLASS DepthPeelingGL
13{
14public:
16
19 MRVIEWER_API void reset( const Vector2i& size );
20
23 MRVIEWER_API bool doPasses( FramebufferData* bgFramebuffer );
24
26 MRVIEWER_API void draw();
27
29 int getNumPasses() const { return numPasses_; }
30 void setNumPasses( int passes ) { numPasses_ = passes; }
31private:
32 FramebufferData accumFB_;
34 int numPasses_{ 5 };
35};
36
37}
class to encapsulate depth peeling rendering passes as fall back if alpha sort is not available
Definition MRDepthPeelingGL.h:13
class for easier rendering in framebuffer texture
Definition MRRenderGLHelpers.h:217
class for rendering simple texture
Definition MRRenderGLHelpers.h:202
int getNumPasses() const
functions to control number of passes
Definition MRDepthPeelingGL.h:29
MRVIEWER_API bool doPasses(FramebufferData *bgFramebuffer)
MRVIEWER_API void reset(const Vector2i &size)
void setNumPasses(int passes)
Definition MRDepthPeelingGL.h:30
MRVIEWER_API void draw()
draws this result texture onto
MR_ADD_CTOR_DELETE_MOVE(DepthPeelingGL)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8