mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-12-25 16:27:16 +01:00
Subtract should actually use inverted signed distance
This commit is contained in:
parent
59c5a43915
commit
766e3d882c
@ -42,7 +42,7 @@ inline void do_op(VoxelBuffer &buffer, int x, int y, int z, float d1, VoxelIsoSu
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case VoxelIsoSurfaceTool::OP_SUBTRACT:
|
case VoxelIsoSurfaceTool::OP_SUBTRACT:
|
||||||
res = MAX(d1, buffer.get_voxel_iso(x, y, z, VoxelBuffer::CHANNEL_ISOLEVEL));
|
res = MAX(1.0 - d1, buffer.get_voxel_iso(x, y, z, VoxelBuffer::CHANNEL_ISOLEVEL));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VoxelIsoSurfaceTool::OP_SET:
|
case VoxelIsoSurfaceTool::OP_SET:
|
||||||
|
Loading…
Reference in New Issue
Block a user