GVRShaderFunctionEditor¶
-
MacroModule
¶ author MeVis Medical Solutions AG
package MeVisLab/Standard
definition 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 that that, if does 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 Inventor scene that contains the SoGVRVolumeRenderer
and the SoGVRShaderFunction
modules to be edited. The scene should be viewed by an Examiner viewer to get 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, so it is safe to delete/remove the editor once the shader functions work as desired.
Currently the editor does not support creation of new SoGVRShaderFunction
modules, the user needs to add them to the scene by himself 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