19 TransparencyMode(
unsigned bgDepthTexId,
unsigned fgColorTexId,
unsigned fgDepthTexId ) :
20 bgDepthTexId_{ bgDepthTexId },
21 fgColorTexId_{ fgColorTexId },
22 fgDepthTexId_{ fgDepthTexId }
26 bool isDepthPeelingEnabled()
const {
return !alphaSort_ && bgDepthTexId_ != 0 && fgColorTexId_ != 0 && fgDepthTexId_ != 0; }
32 bool alphaSort_{
false };
33 unsigned bgDepthTexId_ = 0;
34 unsigned fgColorTexId_ = 0;
35 unsigned fgDepthTexId_ = 0;
#define MR_MAKE_FLAG_OPERATORS(T)
Generates operators for a enum (at namespace scope).
Definition MRFlagOperators.h:6
unsigned getFGDepthPeelingDepthTextureId() const
Definition MRRenderModelParameters.h:29
unsigned getBGDepthPeelingDepthTextureId() const
Definition MRRenderModelParameters.h:27
RenderModelPassMask
Various passes of the 3D rendering.
Definition MRRenderModelParameters.h:40
bool isAlphaSortEnabled() const
Definition MRRenderModelParameters.h:25
TransparencyMode(unsigned bgDepthTexId, unsigned fgColorTexId, unsigned fgDepthTexId)
Definition MRRenderModelParameters.h:19
bool isDepthPeelingEnabled() const
Definition MRRenderModelParameters.h:26
unsigned getFGDepthPeelingColorTextureId() const
Definition MRRenderModelParameters.h:28
TransparencyMode(bool alphaSort)
Definition MRRenderModelParameters.h:16
TransparencyMode()=default
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
struct to determine transparent rendering mode
Definition MRRenderModelParameters.h:13