Set Grid Background Node¶
The Set Grid Background node defines the background value for a voxel grid. This value is used when sampling regions of the grid that do not contain any explicitly stored voxels, such as inactive areas or tiles that have not been initialized.
By default, empty voxels in a grid evaluate to zero or another implicit value. This node allows customizing that behavior, which can be useful when constructing grids procedurally or when combining multiple grids.
入力¶
- Grid(グリッド)
The input grid whose background value will be modified.
- Background(背景)
The value to assign to inactive or uninitialized voxels and tiles.
When sampling outside the defined region of the grid, this value will be returned instead of zero.
- Update Inactive
Override all values stored for inactive voxels as well.
Properties(プロパティ)¶
- Data Type(データタイプ)
The type of data stored in the grid. Determines the expected type of the Background input and the values the grid can hold (e.g. Float, Integer, Boolean, Vector).
出力¶
- Grid(グリッド)
The resulting grid with the updated background value applied.
This grid can be passed to other nodes such as Sample Grid Index or Sample Grid to ensure consistent results in areas where the grid has no stored voxels.