|
|
uint32_t | tool = 0 |
|
uint8_t | paint_id = 1 |
|
UID | default_script |
| | What new volumes draw with.
|
|
uint8_t | default_mode = 0 |
| | voxel::WriteMode new fill volumes land with
|
|
Phase | phase = Phase::idle |
|
bool | dragging = false |
| | if its drawing the mouse make it 2 clicks rather than 3
|
|
UID | extrude_source |
| | The piece Extrude grows from.
|
|
int | axis = 2 |
| | The face the box lies on.
|
|
int32_t | surface = 0 |
| | The voxel layer of the face that was clicked.
|
|
float | plane = 0.0f |
| | Where along axis the mouse ray is cut to find the rectangle.
|
|
int32_t | sign = 1 |
| | Which way is out of the face.
|
|
int32_t | depth = 1 |
|
glm::ivec3 | anchor {0} |
|
glm::ivec3 | current {0} |
|
glm::ivec3 | face_min {std::numeric_limits<int32_t>::min()} |
| | Extrude keeps the footprint on its face.
|
|
glm::ivec3 | face_max {std::numeric_limits<int32_t>::max()} |
|
int | cut_axis = 0 |
| | Extrude: 0 first in face axis, 1 second.
|
|
int32_t | cut_at = 0 |
| | Extrude: the voxel boundary the cut sits on.
|
|
glm::vec2 | cut_start {0.0f} |
|
glm::vec4 | cut_plane {0.0f} |
The VoxelEditor tools in the 3D viewport