# sm.world.voxelFilter

Filters are used to specify what materials a terrain modification sphere can destroy.

**Kind:** Constant

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.world.md#voxelfilter)

The filters are:

- <strong>material0</strong> &ndash; Allows destruction of material 0 in the voxel material set.
- <strong>material1</strong> &ndash; Allows destruction of material 1 in the voxel material set.
- <strong>material2</strong> &ndash; Allows destruction of material 2 in the voxel material set.
- <strong>material3</strong> &ndash; Allows destruction of material 3 in the voxel material set.
- <strong>material4</strong> &ndash; Allows destruction of material 4 in the voxel material set.
- <strong>material5</strong> &ndash; Allows destruction of material 5 in the voxel material set.
- <strong>material6</strong> &ndash; Allows destruction of material 6 in the voxel material set.
- <strong>material7</strong> &ndash; Allows destruction of material 7 in the voxel material set.
- <strong>all</strong> &ndash; Allows destruction of all materials in the voxel material set.

| Value | Description |
| --- | --- |
| none | 0 |
| material0 | 1 |
| material1 | 2 |
| material2 | 4 |
| material3 | 8 |
| material4 | 16 |
| material5 | 32 |
| material6 | 64 |
| material7 | 128 |
| all | 255 |

**Returns:**

| Type | Description |
| --- | --- |
| table | The filter type list. |
