Consolidate return type of texture functions

In the general case, the return type equals the voxel type.
SSE as a special case differs from this.

For internal calculations, 32-bit floating point arithmetic
is used.