GVRShaderFunctionEditor¶
- 
MacroModule¶ author MeVis Medical Solutions AGpackage MeVisLab/Standarddefinition GVRShaderFunctionEditor.def see also SoGVRShaderFunction,SoGVRVolumeRenderer
Purpose¶
The GVRShaderFunctionEditor can be used to edit the shader code of SoGVRShaderFunction modules.
It offers auto-completion of the uniforms/varyings and state members of the currently active GVR shader pipeline. In addition to that, it performs auto-detection of used uniforms/varyings/includes/state members and automatically adds correct declarations for the used members on pressing the apply button.
The SoGVRShaderDiagnosis panel is integrated for debugging the resulting shader while editing the shader functions.
Usage¶
The GVRShaderFunctionEditor needs to be placed into the Open Inventor scene that contains the SoGVRVolumeRenderer and the SoGVRShaderFunction modules to be edited. The scene should be viewed by a SoExaminerViewer to get an immediate update and completion of the current renderer state in the editor. The editor directly modifies the shader functions in the scene, no state is stored in the editor itself; this way, it is safe to delete/remove the editor once the shader functions work as desired.
Currently, the editor does not support the creation of new SoGVRShaderFunction modules, the user needs to add them to the scene manually and can then edit the functions in the editor.
Output Fields¶
outScene¶
- 
name:outScene, type:SoNode¶ A node that should be placed in front of a
SoGVRVolumeRenderer