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 Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/