SoShaderPipelineSilhouette

InventorModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoShaderPipeline
definition SoShaderPipeline.def

Purpose

The SoShaderPipelineSilhouette module modifies the alpha value of the geometry color to provide silhouette enhancement (aka glass/lookthrough effect).

It implements the following formula:

float silhouette = 1.0 - abs(dot(state.vertexEyeNormal, state.eyeViewingDirection));
state.resultColor.a *= pow(silhouette, Exponent) * Weight + Offset;

It should typically be used below an order independent transparency renderer, like SoDepthPeelRenderer or SoWeightedBlendedOIT.