16 TransparencyMode(
unsigned bgDepthTexId,
unsigned fgColorTexId,
unsigned fgDepthTexId ) :
17 bgDepthTexId_{ bgDepthTexId },
18 fgColorTexId_{ fgColorTexId },
19 fgDepthTexId_{ fgDepthTexId }
22 bool isAlphaSortEnabled()
const {
return alphaSort_; }
23 bool isDepthPeelingEnabled()
const {
return !alphaSort_ && bgDepthTexId_ != 0 && fgColorTexId_ != 0 && fgDepthTexId_ != 0; }
24 unsigned getBGDepthPeelingDepthTextureId()
const {
return bgDepthTexId_; }
25 unsigned getFGDepthPeelingColorTextureId()
const {
return fgColorTexId_; }
26 unsigned getFGDepthPeelingDepthTextureId()
const {
return fgDepthTexId_; }
29 bool alphaSort_{
false };
30 unsigned bgDepthTexId_ = 0;
31 unsigned fgColorTexId_ = 0;
32 unsigned fgDepthTexId_ = 0;
40 VolumeRendering = 1 << 2,
44 Opaque | Transparent | NoDepthTest | VolumeRendering
#define MR_MAKE_FLAG_OPERATORS(T)
Definition MRFlagOperators.h:6
unsafe TransparencyMode()
Definition MRCameraOrientationPlugin.h:8