This means that a static_cast<float> is no longer needed to calculate the gradient. A static_assert provides user feedback. The next step here would be to use a MarchingCubesController-type solution to define the density value from a voxel. This way, also the gradient can be stored.