62
62
//////////////////////////////////////////////////////////////////////////////////////////
63
63
static inline float lerp3d(float* field, float x, float y, float z, int xres, int yres, int zres) {
64
64
// clamp pos to grid boundaries
72
72
// locate neighbors to interpolate