SoShaderPipelineCellShading

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

Purpose

The module SoShaderPipelineCellShading provides a 3D rendering technique that applies toon-shading, also known as cell-shading, to give objects a stylized, cartoon-like appearance.

It includes adjustable parameters for controlling the sharpness and transitions of the shading bands (Toon Steps), as well as the blend between traditional diffuse lighting and the toon-shading effect (Toon Diffuse). This allows for fine-tuning of the visual style, ranging from smooth to sharply-defined shading.

Windows

Default Panel

../../../Modules/Inventor/SoShaderPipeline/mhelp/Images/Screenshots/SoShaderPipelineCellShading._default.png

Output Fields

self

name: self, type: SoNode

Parameter Fields

Visible Fields

Enabled

name: enabled, type: Bool, default: TRUE

If checked, the rendering is enabled.

Toon Steps

name: toonSteps, type: Vector4, default: 0.200000002980232 0.300000011920929 0.600000023841858 1

Sets the discrete shading levels in the toon shading effect, allowing to control the number and position of shading bands.

Toon Diffuse

name: toonDiffuse, type: Float, default: 0, minimum: 0, maximum: 1

Sets how much the original diffuse lighting contributes to the final shading, effectively blending between standard and toon shading.