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 should 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

Defines if the shader include is enabled

Program Type

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

Select the fragment or the vertex program.

Identifier

name: identifier, type: String

The identifier string which has to be inserted in SoGVRShaderFunction parameters with keyword include.

Insert At Top

name: insertAtTop, type: Bool, default: FALSE

inserts the code at the top of the shader if enabled