How can I set a voxel to the average occupancy of it's surrounding voxels?

Hello developers! I am trying to make my terrain smoother by setting each voxel’s occupancy to the average of the surrounding voxels. However, I have not really done any scripting with terrain, so I would really appreciate some help on this. Thanks!

1 Like