3D Texture Interpolation (Nearest-Neighbour)
‹ 3D Texture Example with LGL | ● | 3D Texture Interpolation Trilinear ›
A volume is given with the dimensions $w, h, d$ (in voxels). The voxel value of the i-th column, j-th row and k-th slice is given by V(i,j,k). This equals the (i+w(j+kh))-th element in the linear memory layout.
Then the data value at normalized texture coordinate $(s,t,r)\in[0,1]$ is determined via Nearest-Neighbour Interpolation of voxels $V(i,j,k)$ at the index:
The scalar function is therefore:
‹ 3D Texture Example with LGL | ● | 3D Texture Interpolation Trilinear ›