" THE_ATTRIBUTE vec4 occVertColor;\n"
"#elif (__VERSION__ >= 130)\n"
" out vec4 occFragColor;\n"
+ " #ifdef OCC_ENABLE_draw_buffers\n"
+ " out vec4 occFragCoverage;\n"
+ " #endif\n"
"#else\n"
- " #define occFragColor gl_FragColor\n"
+ " #ifdef OCC_ENABLE_draw_buffers\n"
+ " #define occFragColor gl_FragData[0]\n"
+ " #define occFragCoverage gl_FragData[1]\n"
+ " #else\n"
+ " #define occFragColor gl_FragColor\n"
+ " #endif\n"
"#endif\n"
"\n"
"// Matrix state\n"
"uniform vec4 occTexTrsf2d[2]; //!< 2D texture transformation parameters\n"
"uniform float occPointSize; //!< point size\n"
"\n"
+ "//! Parameters of blended order-independent transparency rendering algorithm\n"
+ "uniform int occOitOutput; //!< Enable bit for writing output color buffers for OIT (occFragColor, occFragCoverage)\n"
+ "uniform float occOitDepthFactor; //!< Influence of the depth component to the coverage of the accumulated fragment\n"
+ "\n"
"//! Parameters of clipping planes\n"
"uniform vec4 occClipPlaneEquations[THE_MAX_CLIP_PLANES];\n"
"uniform THE_PREC_ENUM int occClipPlaneCount; //!< Total number of clip planes\n";