Toast Engine
Loading...
Searching...
No Matches
carve_volume.hpp
Go to the documentation of this file.
1
7
8#pragma once
9#include "voxel_volume.hpp"
10
11namespace toast {
12
14class [[ToastNode, Icon("BoxOccluder")]] TOAST_API CarveVolume : public VoxelVolume {
15public:
16 [[nodiscard]]
17 auto kind() const noexcept -> PieceKind override {
18 return PieceKind::carve;
19 }
20};
21
22}
Definition carve_volume.hpp:14
Definition voxel_volume.hpp:17
A box of voxels inside a ProceduralVoxel.
PieceKind
Definition voxel_piece.hpp:26
@ carve
Empties every voxel it has.
Definition voxel_piece.hpp:28