SoGVRShaderParameterDirection¶
-
InventorModule¶ author MeVis Medical Solutions AGpackage MeVisLab/Standarddll SoGVRdefinition SoGVRShaderPipeline.def see also SoGVRVolumeRendererkeywords pipeline
Purpose¶
The SoGVRShaderParameterDirection module adds a directional shader parameter (also known as uniform)
to the scene. Directions are special in that they are transformed using the inverse-transposed of
the transformation matrix to preserve the direction in non-uniform scaled transforms.
Usage¶
The direction is specified in either world or eye (aka camera) coordinates.
It is available in the GVR shader and can be used in any SoGVRShaderFunction.
The parameter is available in various coordinate systems, which are appended as suffixes to its Name.
| Suffix | Coordinate system |
|---|---|
| _eye | eye/camera coordinates |
| _world | world coordinates |
| _voxel | voxel coordinates |
| _scaledVoxel | scaled voxel coordinates (voxel coordinates multiplied by voxel size) |
Output Fields¶
self¶
-
name:self, type:SoNode¶ Place the output into any Open Inventor scene in front of a
SoGVRVolumeRenderer.
Parameter Fields¶
Visible Fields¶
Name¶
-
name:name, type:String¶ Sets the base name of the parameter in the shader.
It becomes available in the
SoGVRShaderFunctionvia name_eye, name_world, name_voxel, and name_scaledVoxel.