This file function relative to rectilinear coordinate support. More...
Go to the source code of this file.
Functions | |
vec3 | VVizComputeCoordinates (const vec3 dataCoord) |
This file function relative to rectilinear coordinate support.
Definition in file vvizCoordinates_frag.h.
vec3 VVizComputeCoordinates | ( | const vec3 | dataCoord | ) |
Compute new coordinates from input coordinates.
This method is used to support rectilinear coordinates or custom projection. It computes voxel coordinates and must be used instead of gl_TexCoord[0].xyz. If not used, texture coordinates may not be clamped, scaled, etc... as necessary in order to have correct rendering.
The parameter usually is gl_TexCoord[0].xyz (in slicing mode only). The returned coordinate is in general directly passed to VVizCombineData method.
dataCoord | Coordinates of point, in normalized dataset space. |