Don't expose untested mode

master
Marc Gilleron 2022-05-02 19:17:18 +01:00
parent 868ae90fbe
commit cd9a9092cb
2 changed files with 7 additions and 7 deletions

View File

@ -119,9 +119,9 @@ void VoxelMeshSDF::bake(Ref<Mesh> mesh) {
case BAKE_MODE_APPROX_INTERP:
generate_mesh_sdf_approx_interp(sdf_grid, res, to_span(triangles), box_min_pos, box_max_pos);
break;
case BAKE_MODE_APPROX_SWEEP:
generate_mesh_sdf_approx_sweep(sdf_grid, res, to_span(triangles), box_min_pos, box_max_pos);
break;
// case BAKE_MODE_APPROX_SWEEP:
// generate_mesh_sdf_approx_sweep(sdf_grid, res, to_span(triangles), box_min_pos, box_max_pos);
// break;
default:
ZN_CRASH();
}
@ -232,8 +232,8 @@ void VoxelMeshSDF::bake_async(Ref<Mesh> mesh, SceneTree *scene_tree) {
}
} break;
case BAKE_MODE_APPROX_INTERP:
case BAKE_MODE_APPROX_SWEEP: {
//case BAKE_MODE_APPROX_SWEEP:
case BAKE_MODE_APPROX_INTERP: {
VoxelBufferInternal &buffer = shared_data->buffer;
const VoxelBufferInternal::ChannelId channel = VoxelBufferInternal::CHANNEL_SDF;
Span<float> sdf_grid;
@ -376,7 +376,7 @@ void VoxelMeshSDF::_bind_methods() {
BIND_ENUM_CONSTANT(BAKE_MODE_ACCURATE_NAIVE);
BIND_ENUM_CONSTANT(BAKE_MODE_ACCURATE_PARTITIONED);
BIND_ENUM_CONSTANT(BAKE_MODE_APPROX_INTERP);
BIND_ENUM_CONSTANT(BAKE_MODE_APPROX_SWEEP);
//BIND_ENUM_CONSTANT(BAKE_MODE_APPROX_SWEEP);
BIND_ENUM_CONSTANT(BAKE_MODE_COUNT);
}

View File

@ -20,7 +20,7 @@ public:
BAKE_MODE_ACCURATE_NAIVE,
BAKE_MODE_ACCURATE_PARTITIONED,
BAKE_MODE_APPROX_INTERP,
BAKE_MODE_APPROX_SWEEP,
//BAKE_MODE_APPROX_SWEEP,
BAKE_MODE_COUNT
};