SoShaderPipelineInclude

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

Purpose

The SoShaderPipelineInclude module allows to extend the SoShaderPipeline with additional GLSL code that can be included from SoShaderPipelineFunction.

Note: If the name if the include already exists, the last include wins. This allows to replace existing includes with own implementation.

Parameter Fields

Field Index

Enabled: Bool
Header: String
Identifier: String
Insert At Top: Bool
Program Type: Enum
Required Includes: String

Visible Fields

Enabled

name: enabled, type: Bool, default: TRUE

Enables the include.

Program Type

name: programType, type: Enum, default: Fragment Program

Chooses the program type.

Identifier

name: identifier, type: String

The name of the include. Use this name in a SoShaderPipelineFunction to add the given include.

Required Includes

name: requiredIncludes, type: String

Comma separated list of names of required includes.

Insert At Top

name: insertAtTop, type: Bool, default: FALSE

Inserts the code at the top of the shader if enabled.