To properly handle transparency, your fragment shader should contains the following function calls:
Files | |
file | oivDepthPeeling_frag.h |
To properly handle transparency, your fragment shader should contains the following function calls:
These methods are accessible by including the <Inventor/oivDepthPeeling_frag.h> header in your shader: Ex:
void main() { if ( OivDepthPeel(gl_FragCoord.xyz) ) { Vec4 color = vec4(1, 0, 0, 0.5); OivDepthPeelingOutputColor(color); } }