Toast Engine
Loading...
Searching...
No Matches
paint_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("Blend")]] TOAST_API PaintVolume : public VoxelVolume {
15public:
16 [[nodiscard]]
17 auto kind() const noexcept -> PieceKind override {
18 return PieceKind::paint;
19 }
20
21 [[nodiscard]]
22 auto writeMode() const noexcept -> voxel::WriteMode override {
24 }
25};
26
27}
Definition paint_volume.hpp:14
Definition voxel_volume.hpp:17
A box of voxels inside a ProceduralVoxel.
WriteMode
Which voxels we should override.
Definition voxel_edit.hpp:26
@ solid_only
Only non-empty space.
Definition voxel_edit.hpp:29
PieceKind
Definition voxel_piece.hpp:26
@ paint
Recolors voxels that are already solid.
Definition voxel_piece.hpp:29