3D Texturinterpolation (Trilinear)
← Trilinear Interpolation | ● | Data Representation →
The data value at normalized texture coordinates (s,t,r)∈[0,1] is determined via Tri-linearer Interpolation of 8 corner values P000...P111:
at the index (of the left front bottom corner of the bounding voxel)
Then the three linear interpolation weights u,v,w∈[0,1] are:
The tri-linear interpolation equals three subsequent linear interpolations along the x-axis (red), the y-axis (green) and the z-axis (blue). The resulting interpolated function value is depicted in yellow.
The function value is therefore:
The trilinear interpolation requires ca. 30 Flops (per rasterized fragment).