Transparency Shader API
[Inventor Shader API.]

To properly handle transparency, your fragment shader should contains the following function calls:

More...

Files

file  oivDepthPeeling_frag.h

Detailed Description

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);
   }
 }

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/