SoGVRShaderInclude¶
- InventorModule¶
genre
author
package
dll
definition
see also
SoGVRVolumeRenderer,SoGVRShaderFunction,SoGVRShaderDiagnosiskeywords
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¶
Output Fields¶
self¶
- name: self, type: SoNode¶
A node that must be put in front of the
SoGVRVolumeRenderer
Parameter Fields¶
Field Index¶
|
|
|
|
|
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
SoGVRShaderFunctionparameters with keyword include.
Header¶
- name: header, type: String¶
Sets the GLSL shader header to be implemented.
Insert At Top¶
- name: insertAtTop, type: Bool, default: FALSE¶
If checked, the code is inserted at the top of the shader.