author | Florian Link |
package | MeVisLab/Standard |
dll | SoShaderPipeline |
definition | SoShaderPipeline.def |
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.