SoShaderPipelineSilhouette¶
- InventorModule¶
author
package
dll
definition
Purpose¶
The SoShaderPipelineSilhouette module modifies the alpha value of the geometry color to provide silhouette enhancement (aka glass or look-through 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.