Sample a VoxelGrid at an arbitrary world-space point.
Trilinearly interpolates between the eight surrounding cell
centres — same behaviour the GPU's LINEAR filtering provides
on a TEXTURE_3D, so a CPU bake of a slice plane looks identical
to a GPU-rendered one at the same resolution.
Returns NaN for points outside the volume bounding box; callers
should test with Number.isNaN before using the result.
Sample a VoxelGrid at an arbitrary world-space point. Trilinearly interpolates between the eight surrounding cell centres — same behaviour the GPU's
LINEARfiltering provides on aTEXTURE_3D, so a CPU bake of a slice plane looks identical to a GPU-rendered one at the same resolution.Returns
NaNfor points outside the volume bounding box; callers should test withNumber.isNaNbefore using the result.