SoGVRShaderInclude

InventorModule

genre

VolRend

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

dll

SoGVR

definition

SoGVRShaderPipeline.def

see also

SoGVRVolumeRenderer, SoGVRShaderFunction, SoGVRShaderDiagnosis

keywords

pipeline, header

Purpose

The SoGVRShaderInclude allows for adding of custom shader code in the header of the GVR shader pipeline.

Usage

Connect the module before the SoGVRVolumeRenderer module in the scene graph and implement the custom shader code to be included in the header. The included shader header can be used in a SoGVRShaderFunction. For that, the identifier string has to be declared in the parameter field of the SoGVRShaderFunction module with the keyword include.

Tips

Implement often used custom functionality using this module.

Windows

Default Panel

../../../Modules/Inventor/SoGVR/mhelp/Images/Screenshots/SoGVRShaderInclude._default.png

Output Fields

self

name: self, type: SoNode

A node that must be put in front of the SoGVRVolumeRenderer

Parameter Fields

Field Index

Enabled: Bool

Header: String

Identifier: String

Insert At Top: Bool

Program Type: Enum

Visible Fields

Enabled

name: enabled, type: Bool, default: TRUE

If checked, the shader include is enabled.

Program Type

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

Defines the fragment or the vertex program.

Identifier

name: identifier, type: String

Sets the identifier string that has to be inserted in SoGVRShaderFunction parameters with keyword include.

Insert At Top

name: insertAtTop, type: Bool, default: FALSE

If checked, the code is inserted at the top of the shader.